html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Georgia, serif;
    background: linear-gradient(lightsteelblue, thistle);
    min-height: 100vh;
    overflow-x: hidden;
}

/* NAV */
.nav-wrap {
    text-align: center;
    padding: 18px 0 8px;
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar {
    display: inline-block;
    background: linear-gradient(lavender, aliceblue);
    padding: 14px 60px;
    border-radius: 30px;
    border: 1px solid plum;
}

.navbar a {
    text-decoration: none;
    color: darkblue;
    margin: 0 20px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

.navbar a:hover { color: slateblue; }

/* SECTION = full viewport height */
.section {
    width: 86%;
    margin: 40px auto;
    box-sizing: border-box;
    padding: 70px 40px;
    border-radius: 30px;
    background: linear-gradient(to right, lavender, mistyrose);
    border: 1px solid plum;
    min-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-inner { width: 88%; margin: auto; }

.section h2 {
    color: darkblue;
    font-size: 26px;
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid plum;
    padding-bottom: 10px;
}

/* HOME */
.hero-box {
    width: 88%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text { width: 55%; }

.text h2 {
    color: darkblue;
    font-size: 34px;
    line-height: 1.4;
    margin-bottom: 16px;
    border: none;
    padding: 0;
    min-height: 1.4em;
}

.text p { color: black; font-size: 18px; line-height: 1.5; }

.text h3 {
    color: darkblue;
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.photo {
    background: white;
    padding: 7px;
    border-radius: 110px;
    border: 3px solid plum;
}

.photo img { width: 220px; border-radius: 100px; overflow: hidden;height: 335px; object-fit: cover;}

/* ABOUT */
.about-text p { color: black; font-size: 17px; line-height: 1.7; margin-top: 0; }

.skills-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.skill-tag {
    background: white;
    border: 1px solid plum;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 14px;
    color: darkblue;
    cursor: default;
    transition: transform 0.15s;
    display: inline-block;
}

/* PORTFOLIO */
.porto-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.porto-overview {
    background: white;
    border: 1px solid plum;
    border-radius: 20px;
    padding: 34px 24px;
    box-sizing: border-box;
}

.porto-overview h3 {
    color: darkblue;
    font-size: 18px;
    margin: 0 0 14px 0;
}

.porto-overview p {
    color: #555;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 10px 0;
}

.porto-overview-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.porto-overview-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, lavender, mistyrose);
    border: 1px solid plum;
    border-radius: 14px;
    padding: 5px 14px;
    font-size: 13px;
    color: darkblue;
}

.porto-cards { display: flex; flex-direction: column; gap: 16px; }

.porto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.porto-card {
    background: white;
    border: 1px solid plum;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.porto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(150, 100, 180, 0.25);
}

.porto-card-thumb-placeholder {
    width: 100%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    background: linear-gradient(135deg, lavender, mistyrose);
}

.porto-card-body { padding: 14px 16px; }
.porto-card-body h3 { color: darkblue; font-size: 15px; margin: 0 0 6px 0; }
.porto-card-body p { color: #666; font-size: 13px; line-height: 1.5; margin: 0; }

.porto-tag {
    display: inline-block;
    background: lavender;
    border: 1px solid plum;
    border-radius: 10px;
    padding: 3px 10px;
    font-size: 12px;
    color: darkblue;
}

.porto-card-footer { padding: 0 16px 14px; font-size: 12px; color: slateblue; font-style: italic; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-card {
    background: white;
    border: 1px solid plum;
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon { font-size: 26px; min-width: 36px; text-align: center; }
.contact-info .contact-label { font-size: 13px; color: slategray; margin: 0 0 3px 0; }
.contact-info .contact-value { font-size: 15px; color: darkblue; font-weight: bold; margin: 0; }

/* ─── DETAIL PAGE (full-screen overlay) ─── */
#detail-page {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: linear-gradient(lightsteelblue, thistle);
    overflow-y: auto;
}

#detail-page.active { display: block; }

.detail-nav-wrap {
    text-align: center;
    padding: 18px 0 8px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.detail-wrap { width: 86%; margin: 24px auto 60px; }

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid plum;
    border-radius: 20px;
    padding: 8px 20px;
    color: darkblue;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 22px;
    font-family: Georgia, serif;
    transition: background 0.15s;
}

.detail-back-btn:hover { background: lavender; }

.detail-box {
    background: white;
    border: 1px solid plum;
    border-radius: 22px;
    padding: 36px 40px;
    max-width: 1150px;
    margin: 0 auto;
    box-sizing: border-box;
}

.modal-tag {
    display: inline-block;
    background: lavender;
    border: 1px solid plum;
    border-radius: 10px;
    padding: 4px 12px;
    font-size: 12px;
    color: darkblue;
    margin-bottom: 14px;
}

.detail-box h2 { color: darkblue; font-size: 22px; margin: 0 0 10px 0; }
.detail-box p { color: #444; font-size: 15px; line-height: 1.7; margin: 0 0 18px 0; }

.detail-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-list { margin: 0; padding: 0 0 0 18px; color: #444; font-size: 14px; line-height: 2; }

/* ===== EXPERIENCE TIMELINE ===== */
.experience-timeline{margin-top:35px}
.experience-item1{display:flex;align-items:center;gap:40px;margin-bottom:60px}
.experience-item1.reverse{flex-direction:row-reverse}
.experience-img1,.experience-desc{flex:1}
.experience-img1 img{width:55%;height:auto;display:block;object-fit:cover;border-radius:18px;border:1px solid plum}
.experience-item{display:flex;align-items:center;gap:40px;margin-bottom:60px}
.experience-item.reverse{flex-direction:row-reverse}
.experience-img,.experience-desc{flex:1}
.experience-img img{width:100%;height:260px;object-fit:cover;border-radius:18px;border:1px solid plum}
.experience-desc h3{color:darkblue;margin-bottom:10px}
.experience-desc p{line-height:1.8}

/* ===== WORK GALLERY ===== */
.work-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:30px}
.work-gallery img{width:100%;height:260px;object-fit:cover;border-radius:18px;border:1px solid plum}
.work-gallery .big{grid-column:span 2}

@media(max-width:900px){
.experience-item1,.experience-item1.reverse{flex-direction:column}
 .experience-item,.experience-item.reverse{flex-direction:column}
 .work-gallery{grid-template-columns:1}
 .work-gallery .big{grid-column:span 1}
}


/* ─── JS ORNAMENTS ─── */
.sparkle, .particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

.sparkle {
    font-size: 15px;
    opacity: 0;
    animation: sparkleFade 0.65s ease forwards;
}

@keyframes sparkleFade {
    0%   { opacity: 1; transform: scale(1.3) rotate(0deg); }
    100% { opacity: 0; transform: scale(0) rotate(20deg) translateY(-18px); }
}

.particle {
    font-size: 18px;
    opacity: 0;
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0%   { opacity: 0.9; transform: translateY(0) rotate(0deg); }
    80%  { opacity: 0.5; }
    100% { opacity: 0; transform: translateY(-200px) rotate(25deg) scale(0.5); }
}

.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(70px);
    background: white;
    border: 1px solid plum;
    border-radius: 20px;
    padding: 11px 26px;
    font-size: 15px;
    color: darkblue;
    font-family: Georgia, serif;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    white-space: nowrap;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: darkblue;
    margin-left: 3px;
    vertical-align: middle;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* ── FOOTER ── */
.site-footer {
    width: 86%;
    margin: 16px auto 40px;
    box-sizing: border-box;
    background: linear-gradient(to right, aliceblue, lavender);
    border: 1px solid plum;
    border-radius: 24px;
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-left .footer-name {
    font-size: 18px;
    font-weight: bold;
    color: darkblue;
    margin: 0 0 4px 0;
}

.footer-left .footer-tagline {
    font-size: 13px;
    color: slategray;
    margin: 0;
}

.footer-center {
    text-align: center;
    font-size: 13px;
    color: slategray;
}

.footer-center p { margin: 0 0 6px 0; }

.footer-right {
    display: flex;
    gap: 12px;
}

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: white;
    border: 1px solid plum;
    border-radius: 50%;
    font-size: 18px;
    text-decoration: none;
    transition: transform 0.15s, background 0.15s;
    cursor: pointer;
}

.footer-icon-link:hover {
    transform: translateY(-3px);
    background: lavender;
}

.detail-footer {
    width: 86%;
    margin: 32px auto 40px;
    box-sizing: border-box;
    background: linear-gradient(to right, aliceblue, lavender);
    border: 1px solid plum;
    border-radius: 24px;
    padding: 20px 36px;
    text-align: center;
    font-size: 13px;
    color: slategray;
}

.detail-footer span { color: plum; margin: 0 6px; }

/* ===== PREMIUM CARD EFFECT ===== */

.experience-item{
    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;
}

.experience-item.show{
    opacity:1;
    transform:translateY(0);
}
.experience-item{
    opacity:0;
    transform:translateY(40px);
    transition:all .8s ease;
}

.experience-item.show{
    opacity:1;
    transform:translateY(0);
}

.experience-desc{
    background:rgba(255,255,255,.72);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    padding:24px;
    border-radius:20px;
    border:1px solid rgba(255,255,255,.4);
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.experience-img1 img{
    transition:.4s ease;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.experience-img1 img:hover{
    transform:scale(1.03);
}

.experience-img img{
    transition:.4s ease;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.experience-img img:hover{
    transform:scale(1.03);
}

@media(max-width:768px){
    .experience-item,
    .experience-item.reverse{
        flex-direction:column !important;
        gap:20px;
        margin-bottom:50px;
    }

    .experience-img img{
        height:220px;
    }

    .experience-desc{
        width:100%;
        box-sizing:border-box;
    }
}

/* ===== SLIDER FOTO (Sorotan Karya: karya2, karya3, karya4) ===== */
.slider-box{
    position:relative;
    overflow:hidden;
}

.slider-track{
    display:flex;
    transition:transform .4s ease;
}

.slider-track img{
    width:100%;
    height:260px;
    object-fit:cover;
    flex-shrink:0;
    border-radius:18px;
    border:1px solid plum;
}

.slider-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,.75);
    border:1px solid plum;
    border-radius:50%;
    width:32px;
    height:32px;
    font-size:16px;
    color:darkblue;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .15s;
}

.slider-btn:hover{ background:lavender; }
.slider-btn.prev{ left:10px; }
.slider-btn.next{ right:10px; }

.slider-dots{
    position:absolute;
    bottom:10px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:6px;
}

.slider-dots .dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:rgba(255,255,255,.6);
    border:1px solid plum;
}

.slider-dots .dot.active{ background:darkblue; }

@media(max-width:768px){
    .slider-track img{ height:220px; }
}