:root {
    --bg-color: #060c08;
    --text-color: #dceee4;
    --accent-color: #00e5a0;
    --accent-dim: rgba(0, 229, 160, 0.12);
    --accent-glow: rgba(0, 229, 160, 0.20);
    --secondary-color: rgba(8, 24, 15, 0.85);
    --border-color: rgba(0, 229, 160, 0.12);
    --glass-bg: rgba(0, 229, 160, 0.05);
    --glass-border: rgba(0, 229, 160, 0.15);
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --text-muted: rgba(220, 238, 228, 0.55);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    scroll-behavior: smooth;
    overflow-x: hidden;
    letter-spacing: 0.3px;
}
html { scroll-behavior: smooth; }

/* ── Navbar ── */
#navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border: none;
    box-shadow: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.4rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.nav-toggle { display: none; }

.nav-logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    text-transform: uppercase;
    opacity: 0.95;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.82rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -5px;
    width: 0; height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { width: 100%; }

/* ── Sections ── */
section, header {
    min-height: 100vh;
    padding: 120px 20px 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(40px);
    overflow: hidden;
}

section.fade-in, header.fade-in {
    opacity: 1;
    transform: translateY(0);
}

header {
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    padding-bottom: 0;
    align-items: flex-start;
    text-align: left;
}

section h2 {
    font-size: 0.72rem;
    margin-bottom: 56px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--accent-color);
    opacity: 0.85;
    position: relative;
    padding-bottom: 18px;
}

section h2::after {
    content: "";
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 32px; height: 1px;
    background: var(--accent-color);
    opacity: 0.5;
}

/* ── Hero / Home ── */
.name {
    font-size: 4.2rem;
    color: var(--text-color);
    margin-bottom: 16px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.tagline {
    font-size: 1.1rem;
    margin: 20px 0 50px;
    color: var(--text-muted);
    max-width: 600px;
    font-weight: 300;
}

.viewer {
    width: 500px; height: 500px;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-top: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

/* ── Hero block — 2-column grid ── */
.hero {
    background: var(--bg-color);
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin-top: -120px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    mask-image: linear-gradient(to bottom, black 88%, transparent 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 30% 60%, rgba(0,229,160,0.06) 0%, transparent 65%);
    z-index: 0;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -120px; left: 0;
    width: 100%; height: 400px;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(0,0,0,0.6) 60%,
        rgba(6,12,8,1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* ── Profile — left column ── */
.profile-section {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 2;
    overflow: hidden;
    mask-image: linear-gradient(
        to right, transparent 0%, black 15%, black 80%, transparent 100%
    ), linear-gradient(to bottom, black 75%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    transform: translateY(60px) scale(0.9);
    filter: brightness(0.35) saturate(1);
}

/* ── Text content — right column ── */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 72px 80px 32px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* ── About / Strengths ── */
.strengths-weaknesses-section {
    flex: 2;
    text-align: justify;
}

.strengths-weaknesses-section h2 {
    font-size: 0.72rem;
    text-align: left;
    padding-bottom: 14px;
    margin-bottom: 20px;
    letter-spacing: 4px;
    font-weight: 600;
    color: var(--accent-color);
    position: relative;
}

.strengths-weaknesses-section h2::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 24px; height: 1px;
    background: var(--accent-color);
    opacity: 0.5;
}

.strengths-weaknesses-section p {
    font-size: 0.97rem;
    color: rgba(220, 238, 228, 0.72);
    line-height: 1.9;
    max-width: 560px;
}

.strengths-weaknesses-section ul {
    list-style: none;
    padding-left: 0;
    margin-top: 4px;
}

.skills-wrapper h3 {
    font-size: 0.68rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-color);
    opacity: 0.7;
    margin-bottom: 14px;
    margin-top: 32px;
}

.strengths-weaknesses-section ul li {
    font-size: 0.9rem;
    color: rgba(220, 238, 228, 0.65);
    padding: 6px 0 6px 16px;
    border-left: 1px solid rgba(0, 229, 160, 0.2);
    margin-bottom: 6px;
    line-height: 1.6;
    transition: border-color 0.25s ease, color 0.25s ease;
}

.strengths-weaknesses-section ul li:hover {
    border-left-color: var(--accent-color);
    color: var(--text-color);
}

/* ── About section ── */
#about p {
    max-width: 820px;
    margin: 0 auto 36px;
    line-height: 1.95;
    color: rgba(220, 238, 228, 0.7);
    font-size: 1rem;
}

.skills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.skills li {
    background: var(--glass-bg);
    padding: 10px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    cursor: pointer;
    color: rgba(220, 238, 228, 0.75);
}

.skills li:hover {
    background: var(--accent-dim);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* ── Portfolio ── */
#portfolio {
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
}
 
#portfolio::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 200%;
    background: radial-gradient(ellipse 80% 50% at 50% 30%, rgba(0,229,160,0.06) 0%, transparent 70%);
    z-index: 0;
}
 
#portfolio::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 400px;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(6,12,8,0.95) 100%);
    pointer-events: none;
    z-index: 0;
}
 
#projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 1;
}
 
.project {
    background: rgba(6, 14, 9, 0.7);
    padding: 0;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    transition: var(--transition);
    overflow: hidden;
    backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}
 
.project:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-color);
    border-color: var(--accent-color);
}
 
.project .viewer {
    width: 100%;
    height: 260px;
    margin: 0;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 10px 10px 0 0;
}
 
.project-content {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-content::after {
    content: "Click for details →";
    display: block;
    margin-top: auto;
    padding-top: 16px;
    padding: 7px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent-color);
    background: rgba(0, 229, 160, 0.06);
    border: 1px solid rgba(0, 229, 160, 0.18);
    border-radius: 4px;
    text-align: center;
    opacity: 0.7;
    transition: opacity 0.25s ease, background 0.25s ease;
    pointer-events: none;
    transform: translateY(10px); /* turun 10px */
}

/* ── Modal ── */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.25s ease;
}

.modal-content {
    background: rgba(7, 16, 11, 0.95);
    margin: 2.5% auto;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    backdrop-filter: blur(20px);
    width: 90vw; height: 90vh;
    display: flex;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: 16px; right: 24px;
    color: rgba(220, 238, 228, 0.4);
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.2s ease;
    line-height: 1;
}
.close-modal:hover { color: var(--accent-color); }

.modal-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,0.3);
    border-right: 1px solid var(--glass-border);
    border-radius: 12px 0 0 12px;
    position: relative;
}

.modal-left .viewer {
    width: 100%; height: 100%;
    max-width: 800px; max-height: 800px;
    border-radius: 8px;
    position: relative;
    margin: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.modal-right {
    flex: 1;
    padding: 44px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    scroll-behavior: smooth;
}

#modal-body h3 {
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

#modal-body p {
    text-align: justify;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
    font-size: 0.97rem;
}

#modal-body .tools {
    font-size: 0.78rem;
    color: rgba(0, 229, 160, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-top: 1px solid var(--glass-border);
    padding-top: 16px;
    margin-top: 20px;
}

/* ── Modal Gallery ── */
.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 1.2rem;
}

.modal-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid transparent;
}

.modal-gallery img:hover {
    opacity: 1;
    transform: scale(1.04);
    border-color: var(--glass-border);
}

/* ── Image Lightbox ── */
#image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#image-lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

#lightbox-img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    font-size: 2rem;
    color: rgba(220, 238, 228, 0.5);
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
    font-weight: 300;
}
.lightbox-close:hover { color: var(--accent-color); }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ── Responsive Modal ── */
@media (max-width: 1200px) {
    .modal-content {
        flex-direction: column;
        height: 90%;
        margin: 5% auto;
    }
    .modal-left {
        flex: none;
        height: 50%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        border-radius: 12px 12px 0 0;
    }
    .modal-right {
        flex: 1;
        padding: 36px 36px 48px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
    }
    #modal-body { min-height: 100%; }
    .modal-left .viewer { max-width: 100%; max-height: 100%; }
}

/* ── Contact ── */
#contact {
    background: var(--bg-color);
    position: relative;
}

#contact::before {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 200%;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,229,160,0.05) 0%, transparent 70%);
    z-index: 0;
}

#contact::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 400px;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(6,12,8,0.95) 100%);
    z-index: 0;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

input, textarea {
    padding: 14px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(0, 229, 160, 0.04);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.92rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    backdrop-filter: blur(8px);
    letter-spacing: 0.2px;
}

input::placeholder, textarea::placeholder { color: rgba(220, 238, 228, 0.25); }

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.08);
}

.error-message {
    color: #ff6b6b;
    font-size: 0.82rem;
    margin-top: -12px;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

button {
    padding: 13px 28px;
    background: var(--accent-color);
    color: #060c08;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    font-family: 'Montserrat', sans-serif;
}

button:hover {
    background: #00fdb5;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 229, 160, 0.25);
}

.contact-info { margin-top: 40px; }
.contact-info p {
    margin: 10px 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* ── Comments Section ── */
#comments {
    background: var(--bg-color);
    position: relative;
}

#comments::before {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 200%;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(0,229,160,0.05) 0%, transparent 70%);
    z-index: 0;
}

.comments-chat { width: 100%; }

.chat-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.chat-input-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(6, 14, 9, 0.75);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 28px 26px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    backdrop-filter: blur(16px);
    text-align: left;
    position: sticky;
    top: 120px;
}

.chat-input-panel h2 {
    text-align: left;
    font-size: 0.68rem;
    margin-bottom: 22px;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent-color);
    opacity: 0.8;
    padding-bottom: 0;
}

.chat-input-panel h2::after { display: none; }

#comment-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

#c-name { width: 100%; }
#c-message { width: 100%; min-height: 340px; resize: vertical; }

#comment-form button {
    width: 100%;
    padding: 13px 22px;
    margin-top: 8px;
}

.chat-messages-panel {
    width: 100%;
    background: rgba(6, 14, 9, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.chat-messages-panel h2 {
    font-size: 0.68rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    opacity: 0.8;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: left;
    padding-bottom: 0;
}

.chat-messages-panel h2::after { display: none; }

#comment-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 4px;
    flex: 1;
}

/* ── Chat Bubbles ── */
.comment {
    display: flex;
    gap: 12px;
    max-width: 88%;
    animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.comment.left  { align-self: flex-start; }
.comment.right { align-self: flex-end; flex-direction: row-reverse; }

.comment .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,229,160,0.25), rgba(0,229,160,0.1));
    border: 1px solid rgba(0, 229, 160, 0.25);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.comment-content {
    background: rgba(0, 229, 160, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 16px;
    backdrop-filter: blur(8px);
}

.comment.right .comment-content {
    background: rgba(0, 229, 160, 0.12);
    border-color: rgba(0, 229, 160, 0.22);
}

.comment-content strong {
    display: block;
    font-size: 0.82rem;
    margin-bottom: 4px;
    color: var(--accent-color);
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.comment-content p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(220, 238, 228, 0.8);
}

.comment-content small {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    color: rgba(220, 238, 228, 0.3);
}

#comment-list::-webkit-scrollbar { width: 4px; }
#comment-list::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 160, 0.15);
    border-radius: 10px;
}

@media (max-width: 900px) {
    .chat-container { grid-template-columns: 1fr; }
    .chat-input-panel { position: relative; top: 0; }
    #comment-list { max-height: none; }
}

/* ── Social Circle Buttons ── */
.circle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    border-radius: 50%;
    font-size: 1.6rem;
    color: rgba(220, 238, 228, 0.7);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.circle-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background: var(--accent-dim);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 229, 160, 0.15);
}

.circle-btn i { pointer-events: none; }

@media (max-width: 500px) {
    .circle-btn { width: 52px; height: 52px; font-size: 1.2rem; }
}

/* ── Breakpoint 1143px — laptop kecil ── */
@media (max-width: 1143px) {
    .hero {
        grid-template-columns: 42% 58%;
    }
    .hero-content {
        padding: 120px 48px 80px 16px;
    }
    .skills-wrapper {
        transform: none;
        max-width: 100%;
        box-sizing: border-box;
    }
}
 
/* ── Breakpoint 960px — tablet ── */
@media (max-width: 960px) {
    header {
        padding-top: 0;
        min-height: unset;
    }
 
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: unset;
        align-items: start;
        margin-top: 0;
        padding-top: 70px;
        mask-image: none;
    }
 
    .profile-section {
        position: relative;
        width: 100%;
        height: 55vh;
        min-height: 280px;
        max-height: 480px;
        z-index: 2;
        overflow: hidden;
        mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
        mask-composite: unset;
        -webkit-mask-composite: unset;
    }
 
    .profile-photo {
        width: 100%;
        height: 150%;
        object-fit: contain;
        object-position: center bottom;
        transform: translateY(0) scale(1);
        filter: brightness(0.4) saturate(0.9);
    }
 
    .hero-content {
        position: relative;
        z-index: 2;
        padding: 16px 60px 80px;
        display: block;
        margin-left: 0;
    }
 
    .strengths-weaknesses-section {
        text-align: justify;
    }
 
    .strengths-weaknesses-section p {
        max-width: 100%;
    }
 
    .skills-wrapper {
        transform: none;
        max-width: 100%;
    }
}

/* ── Mobile 700px ── */
@media (max-width: 700px) {
    .strengths-weaknesses-section { flex: 2; text-align: justify; }
    header {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        min-height: unset;
    }

    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: unset;
        margin-top: 0;
        margin-left: calc(-50vw + 50%);
        margin-bottom: 40px;
        overflow: visible;
        mask-image: none;
        padding-top: 70px;
    }

    .hero-content {
        padding: 16px 32px 56px;
        z-index: 2;
        display: block;
    }

    .hero::before {
        background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(0,229,160,0.06) 0%, transparent 70%);
    }

    .hero::after {
        bottom: -30px;
        height: 160px;
        background: linear-gradient(to bottom,
            rgba(0,0,0,0) 0%,
            rgba(0,0,0,0.5) 40%,
            rgba(6,12,8,0.95) 100%);
    }

    .skills-wrapper { transform: none; max-width: 100%; margin-top: 20px; }

    .profile-section {
        position: relative;
        width: 100%;
        height: 200vw;
        min-height: 400px;
        max-height: 420px;
        mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
        mask-composite: unset;
        -webkit-mask-composite: unset;
    }

    .profile-photo {
        width: 100%; height: 150%;
        object-fit: contain;
        object-position: center bottom;
        transform: scale(1) translateY(0px);
        filter: brightness(0.35) saturate(1);
    }
}

/* ── Navbar Mobile ── */
@media (max-width: 700px) {
    .nav-links {
        position: fixed;
        top: 66px;
        left: 50%;
        transform: translateX(-50%) scale(0.97);
        width: calc(100% - 28px);
        max-width: 400px;
        background: rgba(6, 12, 8, 0.92);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        flex-direction: column;
        align-items: center;
        gap: 1.2rem;
        padding: 1.4rem 0;
        opacity: 0;
        pointer-events: none;
        transition: 0.3s ease;
    }

    .nav-links.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) scale(1);
    }

    .nav-links a { font-size: 0.82rem; opacity: 0.85; }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        outline: none;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-toggle span {
        width: 20px; height: 1.5px;
        background: var(--text-color);
        opacity: 0.7;
        transition: 0.3s ease;
    }

    .nav-toggle:active,
    .nav-toggle:focus,
    .nav-toggle:focus-visible,
    .nav-toggle:focus-within {
        outline: none;
        background: none;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* ── Page Loader ── */
body.preload { overflow: hidden; }
body.preload main, body.preload header, body.preload section { opacity: 0; }

#page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.loader-spinner {
    width: 44px; height: 44px;
    border: 2px solid rgba(0, 229, 160, 0.12);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.loader-text {
    margin-top: 0;
    font-size: 9px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-left: 14px;
    color: rgba(0, 229, 160, 0.4);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── 3D Viewer ── */
.viewer-3d {
    width: 100%; height: 100%;
    min-height: 0;
    background: rgba(4, 10, 6, 0.8);
    border-radius: 8px;
    margin: 0;
    overflow: hidden;
}

.modal-left img, .modal-image {
    width: 100%; height: 100%;
    max-width: 100%; max-height: 100%;
    object-fit: contain;
    object-position: center;
    margin: auto;
    display: block;
}

.project-viewer {
    width: 100%; height: 260px;
    background: rgba(4, 10, 6, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* ── Experience Section ── */
.experience-section {
    background: var(--bg-color);
    position: relative;
}

.experience-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 200%;
    background: radial-gradient(ellipse 70% 50% at 50% 40%, rgba(0,229,160,0.06) 0%, transparent 70%);
    z-index: 0;
}

.experience-section::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 400px;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0) 0%,
        rgba(6,12,8,0.95) 100%);
    pointer-events: none;
    z-index: 0;
}

.experience-section h2 {
    text-align: center;
    margin-bottom: 56px;
    font-size: 0.72rem;
    color: var(--accent-color);
    letter-spacing: 4px;
    font-weight: 600;
    position: relative;
    text-transform: uppercase;
}

.experience-section h2::after {
    content: "";
    position: absolute;
    bottom: -16px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 1px;
    background: var(--accent-color);
    opacity: 0.5;
}

/* ── Grid wrapper ── */
#experience-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1300px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.experience-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 14, 9, 0.7);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.7s forwards;
}

.experience-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px var(--accent-color);
    border-color: var(--accent-color);
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Gambar di atas ── */
.experience-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    border-bottom: 1px solid var(--glass-border);
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.experience-image:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* ── Konten teks di bawah gambar ── */
.experience-content {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.experience-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.experience-content p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(220, 238, 228, 0.6);
    text-align: justify;
}

/* ── Badge periode/role ── */
.experience-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--accent-color);
    opacity: 0.7;
    padding: 4px 10px;
    border: 1px solid rgba(0, 229, 160, 0.18);
    border-radius: 4px;
    background: rgba(0, 229, 160, 0.05);
    width: fit-content;
}


/* ── Responsive ── */
@media (max-width: 860px) {
    #experience-container {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

@media (max-width: 1000px) {
    .experience-card {
        flex-direction: column;
        text-align: center;
        padding: 22px 20px;
        max-width: 500px;
    }
    .experience-image { width: 100%; max-width: 500px; height: auto; }
    .experience-content h3 { font-size: 1.2rem; }
    .experience-content p { font-size: 0.92rem; }
}

/* ── Experience Lightbox ── */
#experience-lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

#experience-lightbox.show {
    opacity: 1;
    pointer-events: all;
}

#experience-lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 0 1px rgba(0, 229, 160, 0.15);
    transition: transform 0.3s ease;
}

#experience-lightbox img:hover { transform: scale(1.02); }

#experience-lightbox .lightbox-close {
    position: absolute;
    top: 20px; right: 28px;
    color: rgba(220, 238, 228, 0.45);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

#experience-lightbox .lightbox-close:hover { color: var(--accent-color); }

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 30px;
    padding: 13px 25px;
    background: #00fdb562;
    color: #060c08;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-size: 0.76rem;
    box-shadow: 0 4px 20px rgba(0, 229, 160, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cv-download-btn i {
    font-size: 0.85rem;
}

.cv-download-btn:hover {
    background: #00fdb5;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(0, 229, 160, 0.4);
}