:root {
    --bg: #ffffff;
    --bg-tinted: #f5f3ff;
    --text: #0f172a;
    --text-muted: #475569;
    --primary: #6366f1;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --border: #e2e8f0;
    --shadow-lg: 0 20px 45px -15px rgba(99, 102, 241, 0.18);
    --radius: 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, .logo {
    font-family: 'Fredoka', 'Plus Jakarta Sans', sans-serif;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Latar Belakang Blob Animasi */
.bg-blobs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    animation: floatBlob 14s infinite alternate ease-in-out;
}

.blob-1 {
    width: 380px;
    height: 380px;
    background: #c7d2fe;
    top: -80px;
    left: -80px;
}

.blob-2 {
    width: 340px;
    height: 340px;
    background: #fbcfe8;
    top: 35%;
    right: -100px;
    animation-delay: -4s;
}

.blob-3 {
    width: 320px;
    height: 320px;
    background: #fde68a;
    bottom: -80px;
    left: 25%;
    animation-delay: -8s;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.12); }
}

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 78px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.55rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    font-size: 1.1rem;
    color: #ffffff;
}

.logo span:last-child {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 9px 16px;
    border-radius: 999px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: #eef2ff;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--text);
    border-radius: 4px;
}

/* Sections */
.section {
    padding: 96px 0;
}

.bg-tinted {
    background: linear-gradient(180deg, #f8fafc 0%, #f5f3ff 50%, #f8fafc 100%);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 52px;
}

.pill-tag {
    display: inline-block;
    background: #eef2ff;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.pill-tag.light {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.section-header h2 {
    font-size: 2.3rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.02rem;
}

/* Hero / Tentang */
.hero-section {
    padding-top: 138px;
    padding-bottom: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 72px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-weight: 700;
    font-size: 0.86rem;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 1.6s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-content h1 {
    font-size: 2.95rem;
    line-height: 1.18;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-text {
    color: var(--secondary);
}

.cursor-bar {
    color: var(--primary);
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-desc {
    font-size: 1.08rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.96rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    box-shadow: 0 10px 24px -6px rgba(99, 102, 241, 0.45);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
}

.full-width {
    width: 100%;
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-chip {
    background: #ffffff;
    border: 1.5px solid var(--border);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.skill-chip:hover {
    transform: translateY(-2px) rotate(-1deg);
    border-color: var(--primary);
}

/* Hero Visual Card */
.hero-visual {
    position: relative;
}

.floating-badge {
    position: absolute;
    background: #ffffff;
    padding: 9px 15px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.82rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    z-index: 3;
    animation: floatY 3.5s infinite ease-in-out;
}

.fb-1 { top: -14px; left: -16px; color: var(--primary); }
.fb-2 { top: 45%; right: -20px; color: var(--secondary); animation-delay: 1s; }
.fb-3 { bottom: -14px; left: 16px; color: #059669; animation-delay: 2s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.profile-card {
    background: #ffffff;
    border-radius: 26px;
    border: 2px solid #eef2ff;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    text-align: center;
    padding-bottom: 28px;
}

.card-banner {
    height: 110px;
    background: linear-gradient(135deg, #6366f1, #ec4899, #f59e0b);
    position: relative;
}

.avatar-wrapper {
    width: 136px;
    height: 136px;
    margin: -68px auto 14px;
    border-radius: 50%;
    padding: 6px;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
}

.avatar-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.profile-info h3 {
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.profile-info .role {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 20px;
}

.stat-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px 8px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
}

.stat-box small {
    display: block;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Marquee */
.marquee-wrapper {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #ffffff;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-1deg) scale(1.02);
}

.marquee-track {
    display: inline-flex;
    gap: 28px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.04em;
    animation: marqueeScroll 22s linear infinite;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Pengalaman & Skill Bars */
.exp-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.85fr;
    gap: 32px;
    align-items: start;
}

.timeline-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exp-card {
    display: flex;
    gap: 20px;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.exp-card:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-lg);
    border-color: #c7d2fe;
}

.exp-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: #ffffff;
}

.grad-1 { background: linear-gradient(135deg, #6366f1, #38bdf8); }
.grad-2 { background: linear-gradient(135deg, #ec4899, #f59e0b); }
.grad-3 { background: linear-gradient(135deg, #10b981, #06b6d4); }

.exp-year {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    background: #eef2ff;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 6px;
}

.exp-body h3 {
    font-size: 1.18rem;
    margin-bottom: 2px;
}

.exp-body h4 {
    font-size: 0.92rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 8px;
}

.exp-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.skills-panel {
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.skills-panel h3 {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.panel-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.skill-bar-item {
    margin-bottom: 18px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.bar-bg {
    height: 11px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.fun-fact-box {
    margin-top: 24px;
    background: #fffbeb;
    border: 1.5px dashed #fbbf24;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.86rem;
}

.fun-fact-box span {
    font-size: 1.6rem;
}

/* Portofolio */
.filter-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-btn {
    background: #ffffff;
    border: 1.5px solid var(--border);
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text);
    color: #ffffff;
    border-color: var(--text);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    background: #ffffff;
    border-radius: 22px;
    border: 1.5px solid var(--border);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card.hide {
    display: none;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.project-visual {
    height: 210px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vis-1 { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.vis-2 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }
.vis-3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.vis-4 { background: linear-gradient(135deg, #10b981, #3b82f6); }

.card-illus {
    width: 86%;
    max-width: 290px;
    transition: transform 0.4s ease;
}

.project-card:hover .card-illus {
    transform: scale(1.07) translateY(-4px);
}

.badge-cat {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
}

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.project-content p {
    font-size: 0.94rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.tech-tags {
    display: flex;
    gap: 6px;
}

.tech-tags span {
    background: #f1f5f9;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
}

.btn-detail {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-detail:hover {
    text-decoration: underline;
}

/* Kontak */
.contact-wrapper {
    background: linear-gradient(135deg, #4f46e5, #9333ea, #ec4899);
    border-radius: 30px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 44px;
    color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.35);
}

.contact-left h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 14px;
}

.contact-left p {
    opacity: 0.92;
    margin-bottom: 28px;
}

.social-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    padding: 14px 18px;
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-item:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.24);
}

.s-icon {
    font-size: 1.4rem;
}

.social-item strong {
    display: block;
    font-size: 0.95rem;
}

.social-item small {
    opacity: 0.85;
    font-size: 0.84rem;
}

.contact-form {
    background: #ffffff;
    color: var(--text);
    padding: 32px;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-form h3 {
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-feedback {
    margin-top: 12px;
    text-align: center;
    font-weight: 700;
    color: var(--success);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: 28px 0;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-top {
    text-decoration: none;
    font-weight: 800;
    color: var(--primary);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 2000;
}

.modal-overlay.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    max-width: 480px;
    width: 100%;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    font-weight: 800;
    cursor: pointer;
}

.modal-box h3 {
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.modal-box p {
    color: var(--text-muted);
    margin-bottom: 18px;
}

.modal-tech {
    background: #f8fafc;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    margin-bottom: 22px;
}

/* Scroll Reveal Animations */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up { transform: translateY(28px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }

.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* Responsif */
@media (max-width: 920px) {
    .hero-grid,
    .exp-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 32px 24px;
    }
}

@media (max-width: 680px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .floating-badge {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
