:root {
    --bg-main: #050816;
    --nav-bg: rgba(5, 8, 22, 0.9);
    --accent: #4f8cff;
    --accent-soft: rgba(79, 140, 255, 0.12);
    --text-main: #e5ecff;
}

/* Global */
body.bg-main {
    background: radial-gradient(circle at top, #101b3a 0, #050816 40%, #02010a 100%);
    color: #e5ecff;
    min-height: 100vh;
    background-size: 200% 200%;
    animation: bgMove 18s ease-in-out infinite;
}

@keyframes bgMove {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 0%; }
}

/* Navbar */
.nav-blur {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    letter-spacing: 0.06em;
}

.navbar .nav-link {
    font-size: 0.9rem;
    opacity: 0.8;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    opacity: 1;
    color: var(--accent) !important;
}

.brand-badge {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.4);
    opacity: 0.85;
}


/* Hero */
.hero-section {
    min-height: calc(100vh - 56px);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before,
.hero-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.28;
    pointer-events: none;
}

.hero-section::before {
    width: 260px;
    height: 260px;
    background: #4f8cff;
    top: -40px;
    right: -60px;
    animation: blobMove 22s ease-in-out infinite;
}

.hero-section::after {
    width: 220px;
    height: 220px;
    background: #aa4bff;
    bottom: -60px;
    left: -40px;
    animation: blobMove 26s ease-in-out infinite reverse;
}

@keyframes blobMove {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -20px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

.profile-picture-wrapper {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    padding: 5px;
    background: conic-gradient(from 180deg, #4f8cff, #aa4bff, #4f8cff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
    animation: float 4s ease-in-out infinite;
}

.profile-picture-wrapper:hover {
    transform: translateY(-12px) scale(1.05);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.7);
    filter: saturate(1.15);
}

.profile-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

/* Animasi teks di hero */
.hero-heading,
.hero-subtitle,
.hero-text,
.hero-contact,
.hero-actions {
    opacity: 0;
    transform: translateY(10px);
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.hero-heading {
    animation-name: heroFadeUp;
    animation-delay: 0.05s;
}

.hero-subtitle {
    animation-name: heroFadeUp;
    animation-delay: 0.18s;
}

.hero-text {
    animation-name: heroFadeUp;
    animation-delay: 0.3s;
}

.hero-contact {
    animation-name: heroFadeUp;
    animation-delay: 0.42s;
}

.hero-actions {
    animation-name: heroFadeUp;
    animation-delay: 0.54s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glow bergerak untuk semua halaman */
.section-page {
    position: relative;
    padding: 4rem 0;
    min-height: 100vh;
    overflow: hidden;
}

.section-page::before,
.section-page::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.25;
    pointer-events: none;
}

.section-page::before {
    width: 260px;
    height: 260px;
    background: #4f8cff;
    top: -40px;
    right: -60px;
    animation: blobMove 22s ease-in-out infinite;
}

.section-page::after {
    width: 220px;
    height: 220px;
    background: #aa4bff;
    bottom: -60px;
    left: -40px;
    animation: blobMove 26s ease-in-out infinite reverse;
}

@keyframes blobMove {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(40px, -20px) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

.hero-text {
    max-width: 520px;
}

/* Sections */
.section-page {
    padding: 4rem 0 3rem;
}

.section-title {
    font-weight: 600;
    color: #ffffff;
    border-left: 4px solid var(--accent);
    padding-left: 0.75rem;
}

.section-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.5rem;
}

/* Timeline (Pendidikan) */
.timeline {
    position: relative;
    padding-left: 1.5rem;
    margin-top: 1.5rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: 3px;
    top: 14px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background-color: #050816;
    border: 3px solid var(--accent);
}

.timeline-card {
    background: rgba(11, 23, 60, 0.9);
    color: var(--text-main);
}

/* Card hover */
.hover-lift {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
    background: rgba(11, 23, 60, 0.85);
    color: var(--text-main);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
    background: rgba(16, 32, 80, 0.95);
}

/* Skills */
.skill-pill {
    background: var(--accent-soft);
    color: var(--text-main);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    border: 1px solid rgba(79, 140, 255, 0.4);
}

.skill-level {
    font-weight: 500;
    margin-left: 4px;
    color: var(--accent);
}

/* Portofolio */
.portfolio-image {
    height: 180px;
    object-fit: cover;
}

.bg-accent-soft {
    background-color: var(--accent-soft);
}

.footer-glass {
    background: rgba(5, 8, 22, 0.9);
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Buttons */
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(79, 140, 255, 0.35);
}

.btn-accent:hover {
    background: #3b72d6;
    border-color: #3b72d6;
    color: #ffffff;
}

/* Fade-in animation */
.fade-card {
    animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Efek hover tombol hero */
.hero-actions .btn {
    border-radius: 999px;
    padding-inline: 1.5rem;
    transition: 
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease;
}

/* Tombol outline putih (default) */
.hero-actions .btn-outline-light {
    background-color: transparent;
    border-width: 1.5px;
}

.hero-actions .btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.35);
    background-color: #4f8cff;
    border-color: #4f8cff;
    color: #ffffff;
}

/* Kalau nanti kamu pakai btn-accent juga, efeknya ikut */
.hero-actions .btn-accent {
    border-radius: 999px;
}

.hero-actions .btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(79, 140, 255, 0.5);
}

/* ===== HALAMAN PENDIDIKAN ===== */

.section-pendidikan .section-title {
    border-left: 3px solid #4f8cff;
    padding-left: 0.75rem;
}

.education-chips .edu-chip {
    background: rgba(10, 25, 80, 0.85);
    color: #e5ecff;
    border-radius: 999px;
    border: 1px solid rgba(79, 140, 255, 0.5);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: default;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.education-chips .edu-chip:hover {
    transform: translateY(-2px);
    background: rgba(79, 140, 255, 0.2);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* garis timeline dengan animasi gradient */
.timeline-animated {
    position: relative;
    padding-left: 1.75rem;
}

.timeline-animated::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(79, 140, 255, 0.1),
        rgba(79, 140, 255, 0.8),
        rgba(170, 75, 255, 0.8),
        rgba(79, 140, 255, 0.1)
    );
    background-size: 100% 220%;
    animation: timelineScroll 12s linear infinite;
    opacity: 0.8;
}

@keyframes timelineScroll {
    0%   { background-position: 0 0; }
    100% { background-position: 0 220%; }
}

/* marker timeline yang berdenyut */
.timeline-marker {
    position: absolute;
    left: 3px;
    margin-top: 18px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #4f8cff;
    background: #050816;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.6);
}

.timeline-marker .inner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4f8cff;
    animation: markerPulse 1.8s ease-in-out infinite;
}

@keyframes markerPulse {
    0%   { transform: scale(1);   opacity: 1; }
    50%  { transform: scale(1.7); opacity: 0.25; }
    100% { transform: scale(1);   opacity: 1; }
}

/* kartu pendidikan */
.section-pendidikan .timeline-card {
    background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), rgba(5, 10, 30, 0.96));
    border-radius: 18px;
    backdrop-filter: blur(12px);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 1px solid rgba(79, 140, 255, 0.25);
}

.section-pendidikan .timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    border-color: rgba(170, 75, 255, 0.6);
}

/* bulatan icon kampus/sekolah */
.edu-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 0, #4f8cff, #1b2545);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
}

/* pill tahun */
.edu-year-pill {
    border-radius: 999px;
    padding-inline: 0.85rem;
    font-size: 0.8rem;
}

/* sedikit spacing antar item timeline */
.timeline-item {
    position: relative;
    padding-left: 1.2rem;
}

/* ===== LAYOUT PENDIDIKAN DENGAN LOGO ===== */

.education-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.education-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), rgba(5, 10, 30, 0.96));
    border: 1px solid rgba(79, 140, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.education-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
    border-color: rgba(170, 75, 255, 0.6);
}

.edu-logo-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-logo-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #050816;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: eduLogoFloat 4s ease-in-out infinite;
}

.edu-logo-wrapper img {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

/* kalau belum ada logo, pakai placeholder icon */
.edu-logo-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 0, #4f8cff, #1b2545);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.3rem;
    animation: eduLogoFloat 4s ease-in-out infinite;
}

@keyframes eduLogoFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.edu-info-cell h5 {
    color: #f5f7ff;
}

.edu-year-pill {
    border-radius: 999px;
    padding-inline: 0.85rem;
    font-size: 0.8rem;
}

/* responsif: kalau layar kecil, logo di atas, teks di bawah */
@media (max-width: 576px) {
    .education-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .edu-logo-cell {
        justify-content: flex-start;
    }
}

/* ===== TIMELINE PENGALAMAN (KIRI-KANAN) ===== */

.section-pengalaman .section-title {
    border-left: 3px solid #4f8cff;
    padding-left: 0.75rem;
}

/* container timeline */
.experience-timeline {
    position: relative;
    padding: 2rem 0;
}

/* garis vertikal tengah */
.experience-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        rgba(79, 140, 255, 0.1),
        rgba(79, 140, 255, 0.8),
        rgba(170, 75, 255, 0.8),
        rgba(79, 140, 255, 0.1)
    );
    background-size: 100% 220%;
    animation: experienceLineMove 14s linear infinite;
    opacity: 0.85;
}

@keyframes experienceLineMove {
    0%   { background-position: 0 0; }
    100% { background-position: 0 220%; }
}

/* tiap item di timeline */
.exp-item {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 2.2rem;
}

/* kiri / kanan */
.exp-item.exp-left  { justify-content: flex-start; }
.exp-item.exp-right { justify-content: flex-end; }

/* card pengalaman */
.exp-card {
    width: 100%;
    max-width: 460px;
    background: radial-gradient(circle at top left, rgba(79, 140, 255, 0.18), rgba(5, 10, 30, 0.96));
    border-radius: 18px;
    border: 1px solid rgba(79, 140, 255, 0.25);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    position: relative;
    /* animasi dasar */
    opacity: 0;
    transform: translateY(18px);
    animation-duration: 2.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
    animation-delay: var(--delay, 0s);
}

/* animasi beda arah kiri/kanan */
.exp-item.exp-left .exp-card {
    animation-name: expSlideInLeft;
}

.exp-item.exp-right .exp-card {
    animation-name: expSlideInRight;
}

/* titik kecil yang nempel ke garis tengah */
.exp-item::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #050816;
    border: 2px solid #4f8cff;
    box-shadow: 0 0 0 0 rgba(79, 140, 255, 0.6);
    z-index: 2;
}

.exp-item::after {
    content: "";
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #4f8cff;
    animation: expDotPulse 1.8s ease-in-out infinite;
}

@keyframes expDotPulse {
    0%   { transform: translateX(-50%) scale(1);   opacity: 1; }
    50%  { transform: translateX(-50%) scale(1.7); opacity: 0.25; }
    100% { transform: translateX(-50%) scale(1);   opacity: 1; }
}

/* keyframes kiri-kanan */
@keyframes expSlideInLeft {
    from {
        opacity: 0;
        transform: translate(-40px, 20px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes expSlideInRight {
    from {
        opacity: 0;
        transform: translate(40px, 20px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* pill tahun */
.exp-year-pill {
    border-radius: 999px;
    padding-inline: 0.85rem;
    font-size: 0.8rem;
}

/* responsive: kalau layar kecil, card jadi full width, garis tetap tengah */
@media (max-width: 768px) {
    .experience-timeline::before {
        left: 8px;
        transform: none;
    }

    .exp-item {
        padding-left: 1.5rem;
    }

    .exp-item::before,
    .exp-item::after {
        left: 8px;
        transform: none;
    }

    .exp-item.exp-left,
    .exp-item.exp-right {
        justify-content: flex-start;
    }

    .exp-card {
        max-width: 100%;
    }
}

/* Perbaiki kontras teks di pengalaman */
.section-pengalaman .exp-card .card-title {
    color: #ffffff;
}

.section-pengalaman .exp-card p {
    color: rgba(229, 236, 255, 0.92);
}

.section-pengalaman .exp-card .text-accent,
.section-pengalaman .exp-card .badge {
    color: #c6d5ff;
}

/* Deketin card ke garis tengah */
.exp-item.exp-left .exp-card {
    margin-left: 6%;
}

.exp-item.exp-right .exp-card {
    margin-right: 6%;
}

/* ========== SKILLS CARD STYLE ========== */

.section-skills {
    padding-top: 30px;
}

.section-skills .section-title {
    border-left: 3px solid #4f8cff;
    padding-left: 0.75rem;
}

.skill-card {
    background: linear-gradient(145deg, #0a1a3a, #061229);
    border-radius: 18px;
    padding: 22px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        background .28s ease,
        border-color .28s ease;
}

.skill-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 24px 50px rgba(0,0,0,0.45);
    background: linear-gradient(145deg, #142b5a, #07152d);
    border-color: rgba(79,140,255,0.7);
}


/* Icon Bootstrap */
/* Icon Bootstrap di card skill */
.skill-icon i {
    font-size: 3rem;
    margin-bottom: 4px;
    color: #4f8cff;
    transition:
        transform .25s ease,
        text-shadow .25s ease,
        color .25s ease;
}

/* Saat card di-hover, icon ikut “pop” */
.skill-card:hover .skill-icon i {
    transform: translateY(-4px) scale(1.08);
    text-shadow: 0 0 18px rgba(79,140,255,0.8);
    color: #79a8ff;
}

/* Animasi muncul satu-satu */
.fade-skill {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeSkillUp .7s ease-out forwards;
    animation-delay: var(--skill-delay, 0s);
}

@keyframes fadeSkillUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}