* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-pure);
    line-height: 1.7;
    font-size: 10.5pt;
}

:root {
    --bg-main: #140d1a;
    --surface: #211628;
    --text-pure: #f5eff7;
    --text-muted: #a89ba9;
    --accent-purple: #9b6ba8;
    --accent-red: #c95b6d;
    --accent-hover: #b04658;
}

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    background-color: rgba(20, 13, 26, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #31213c;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent-red);
    letter-spacing: 0.5px;
}

#logoImg {
    top: .67rem;
    height: 3.5rem;
    width: auto;
    position: absolute;
    left: 0vw;
}

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

.nav-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    transition: all 0.3s ease;
}

.nav-btn:hover, .nav-btn.active {
    color: var(--text-pure);
    border-bottom: 2px solid var(--accent-red);
}

/* --- LAYOUT UTAMA --- */
.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    min-height: 80vh;
    overflow-x: hidden;
}

.page-section {
    display: none;
    animation: smoothReveal 0.5s ease forwards;
}

.page-section.active {
    display: block;
}

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

/* --- HERO GRID --- */
.hero-layout {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.hero-text {
    flex: 1.3;
}

h1 {
    font-size: 2.5rem;
    color: var(--text-pure);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--accent-purple);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.bio {
    color: var(--text-muted);
    text-align: justify;
    margin-bottom: 2rem;
}

/* --- PLACEHOLDER GAMBAR SYSTEM --- */
.img-placeholder {
    background-color: var(--surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.profile-img {
    width: 260px;
    height: 260px;
    object-fit: cover;
}

.project-img {
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

/* --- INTERAKTIF SVG MASCOT --- */
.interactive-vibe {
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: var(--surface);
    padding: 0.6rem 1rem;
    border-radius: 30px;
    width: fit-content;
}

#vibe-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.svg-mascot {
    width: 28px;
    height: 28px;
    fill: var(--accent-red);
    transition: transform 0.3s ease, fill 0.3s ease;
}

.svg-mascot:hover {
    transform: scale(1.2) rotate(15deg);
    fill: var(--accent-purple);
}

.svg-active {
    animation: pulseHeart 0.5s ease-in-out infinite alternate;
}

@keyframes pulseHeart {
    from {
        transform: scale(1);
        fill: var(--accent-red);
    }
    to {
        transform: scale(1.2);
        fill: #ff8fa3;
    }
}

#vibe-text {
    font-size: 0.9rem; color: var(--text-muted);
}

/* --- INTERACTIVE TABS (MINAT) --- */
.interests-container {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #31213c;
}

.interests-container h3 {
    margin-bottom: 0.3rem;
    font-size: 1.4rem;
}

.minat-img {
    max-width: 50vw;
    padding: 1rem;
    border-radius: 1.050rem;
}

.ins-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.interest-tabs {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tab-btn {
    background-color: #1a1122;
    border: 1px solid #3d2a4a;
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.active {
    background-color: var(--accent-purple);
    color: var(--text-pure);
    border-color: var(--accent-purple);
}

.interest-display-box {
    background-color: rgba(20, 13, 26, 0.5);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
    animation: fadeInTab 0.4s ease;
}

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

.interest-display-box h4 {
    margin-bottom: 0.5rem;
    color: var(--text-pure);
}

/* --- GRID KARYA PROJEK --- */
h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-pure);
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

.project-card {
    background-color: var(--surface);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #31213c;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.project-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
    text-align: justify;
}

.tech-tag {
    background-color: #1a1122;
    color: var(--accent-red);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.4rem;
    display: inline-block;
    margin-bottom: 0.4rem;
}

/* --- MEDIA SOSIAL LAYOUT --- */
.social-layout {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-box {
    flex: 1;
    min-width: 250px;
    background-color: var(--surface);
    border: 1px solid #31213c;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-pure);
    transition: all 0.3s ease;
}

.social-box:hover {
    transform: scale(1.02);
    border-color: var(--accent-red);
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent-purple);
}

/* --- FOOTER REGION --- */
.main-footer {
    border-top: 1px solid #31213c;
    padding: 2rem;
    text-align: center;
    background-color: #0f0a14;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5rem;
}

.footer-sub {
    font-size: 0.8rem;
    color: #6e6172;
    margin-top: 0.3rem;
}

/* --- RESPONSIVE SCREEN --- */
@media (max-width: 768px) {
    #logoImg {
        top: .5rem;
        height: 3rem;
        width: auto;
        position: absolute;
        left: 0vw;
    }
    
    .hero-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 1.5rem;
    }
    
    .bio {
        text-align: center;
    }
    
    .interactive-vibe {
        margin: 0 auto;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Transisi masuk saat di-scroll */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tombol Kembali di halaman detail */
.back-btn {
    background: none;
    border: none;
    color: var(--accent-purple);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: var(--text-pure);
}

/* Tampilan isi detail projek */
.detail-header {
    margin-bottom: 2rem;
}

.detail-header h2 {
    border: none;
    padding: 0;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.detail-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #31213c;
    object-fit: cover;
}

.detail-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-align: justify;
}

.detail-body a {
    text-decoration: none;
    color: var(--accent-purple);
    font-weight: 700;
}

.detail-body a:hover {
    color: var(--accent-hover);
    transition: ease-in-out .5s;
}

.detail-body video {
    width: 100%;
    height: auto;
}

button, a {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    user-select: none;
}

button:focus, a:focus {
    outline: none;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slider-track .img-card {
    min-width: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    object-fit: cover;
    border-radius: 0px;
}

/* Desain tombol manual */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 25px;
    height: 25px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Disembunyikan secara default */
    opacity: 0;
    visibility: hidden; 
    transition: opacity 0.3s, visibility 0.3s, background-color 0.3s;
}

.slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Desktop: Tombol muncul saat di-hover */
@media (min-width: 769px) {
    .slider-container:hover .slider-btn {
        opacity: 1;
        visibility: visible;
    }
}

/* Class tambahan khusus Mobile yang akan dipicu oleh JavaScript */
.slider-btn.show-mobile {
    opacity: 1;
    visibility: visible;
}
