:root {
  --bg-color: #11071f;
  --card-color: #2b215a;
  --accent-color: #a362ff;
  --text-color: #ccd6f6;
  --border-color: #4f228d;
}

html {
  scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color); 
    font-family: Inter, Cambria, sans-serif;
}

p {
    color: var(--text-color);
    text-align: center;
}

h1, h2, h3, h4 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 15px;
}

hr {
    border: 2px solid var(--accent-color);
    width: 20%;
    margin-bottom: 15px;
}

nav {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    padding: 10px 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

nav ul li a{
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

nav .logo a{
    color: var(--text-color);
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.menu-checkbox {
    display: none;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    overflow: visible;
}

.img {
    width:42px;
    height:42px;
    border-radius: 50%;
    object-fit: cover;
}

.span-logo {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 20px 0 8px 0;
}

.img-person {
    width:150px;
    height:150px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.child {
    padding-bottom: 10px;
    background-color: var(--card-color);
    border-radius: 0.5rem;
    margin-bottom: 20px;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 24px;
    padding-top: 24px;
    max-width: 450px;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--card-color), #1a143c);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 24px rgba(163, 98, 255, 0.13);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.github-link {
    position: absolute;
    top: 15px;
    right: 15px;
}

.github-link .github-icon {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.github-link:hover .github-icon {
    transform: scale(1.1);
}

.child:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 8px 32px rgba(163, 98, 255, 0.22);
}

.toggle-checkbox {
    display: none;
}

.project-desc {
    display: none;
    margin-top: 18px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.92;
}

.toggle-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 1.08rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(163, 98, 255, 0.10);
    transition: background 0.2s, box-shadow 0.2s;
    margin-top: auto;
}

.toggle-button:hover {
    background-color: #8d4be6;
    box-shadow: 0 4px 16px rgba(163, 98, 255, 0.18);

}

.toggle-checkbox:checked ~ .project-desc {
    display: block;
}

.toggle-button .hide {
    display: none;
}

.toggle-checkbox:checked ~ .toggle-button .hide {
    display: block;
}

.toggle-checkbox:checked ~ .toggle-button .more {
    display: none;
}

.child h4 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 18px;
    color: var(--text-color);
}

.child .img {
    width: 100px;
    height: 100px;
    margin-bottom: 2px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 2px 12px rgba(163, 98, 255, 0.10);
}
.page-wrapper {
    max-width: 1000px;
    margin: auto;
}

.skills-container {
    margin-top: 20px;
    display: flex; /* Helps with wrapping and spacing */
    flex-wrap: wrap; /* Allows skills to wrap to the next line */
    gap: 8px; /* Adds space between skill tags */
    justify-content: center; /* Centers the skill tags */
}

.span-skills {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Makes it more pill-shaped */
    padding: 6px 12px;
}

@media screen and (max-width: 600px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  nav {
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 10px;
    flex-wrap: wrap; /* Supaya ul bisa turun ke bawah saat disembunyikan/dimunculkan */
  }

  .hamburger-btn {
    display: flex;
  }

  nav ul {
    display: none; /* Sembunyikan menu secara default di HP */
    flex-direction: column;
    width: 100%;
    background-color: var(--bg-color);
    padding: 10px 0 20px 0;
    gap: 20px;
  }

  /* Tampilkan menu jika checkbox dicentang (diklik hamburger-nya) */
  .menu-checkbox:checked ~ ul {
    display: flex;
  }

  /* Animasi ikon hamburger berubah menjadi X */
  .menu-checkbox:checked ~ .hamburger-btn span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .menu-checkbox:checked ~ .hamburger-btn span:nth-child(2) {
    opacity: 0;
  }

  .menu-checkbox:checked ~ .hamburger-btn span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

footer {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1.5px solid var(--border-color);
    background: linear-gradient(90deg, #1a143c 0%, var(--card-color) 100%);
    box-shadow: 0 -2px 24px rgba(163, 98, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    margin-top: 16px;
    gap: 4px;
}

.footer-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.footer-motto {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
    font-style: italic;
    text-align: center;
    margin-bottom: 2px;
}

footer .img {
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    width: 48px;
    height: 48px;
}

footer .img:hover {
    opacity: 1;
    transform: scale(1.18) rotate(-8deg);
}

.copyright {
    color: var(--text-color);
    font-size: 13px;
    opacity: 0.45;
    margin-top: 25px;
    text-align: center;
    letter-spacing: 1px;
}

.text-with-line {
  display: inline-block;
  position: relative; /* Needed for positioning the pseudo-element */
}

.text-with-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px; /* Adjust vertical position below the text */
  height: 4px; /* Thickness of the line */
  background-color: var(--accent-color); /* Color of the line */
}

.section-heading-wrapper {
    text-align: center;
    margin-bottom: 12px;
}

header {
    padding-top: 32px;
    padding-bottom: 32px;
    background: linear-gradient(115deg, #201a36 60%, #2b215a 100%);
    border-radius: 1rem;
    box-shadow: 0 2px 16px rgba(163, 98, 255, 0.10);
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    animation: fadeInHeader 1s ease;
}

@keyframes fadeInHeader {
    from {opacity: 0; transform: translateY(-30px)}
    to {opacity: 1; transform: translateY(0);}
}

header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--accent-color);
    text-shadow: none;
}

header h4 {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 10px;
}

header p {
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.85;
    margin-bottom: 0;
    margin-top: 0;
}

header .download-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 14px rgba(163, 98, 255, 0.25);
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

header .download-btn:hover {
    background-color: #8d4be6;
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 20px rgba(163, 98, 255, 0.35);
}

.img-person {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    padding: 10px; /* ruang antara foto dan border */
    background: var(--bg-color); /* warna latar belakang lingkaran */
    border: 1px solid var(--bg-color);
    box-sizing: border-box;
    margin-bottom: 18px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s;
}

.img-person:hover {
    transform: scale(1.07) rotate(-2deg);
}

.child-contact {
    background: var(--card-color);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(163, 98, 255, 0.08);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.child-contact:hover {
    box-shadow: 0 4px 24px rgba(163, 98, 255, 0.18);
    transform: translateY(-6px) scale(1.03);
}

.child-contact .img {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 1px 6px rgba(163, 98, 255, 0.10);
}

.child-contact h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    text-align: center;
}

.child-contact p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    text-align: center;
    word-break: break-all;
}

.experience-role {
    font-weight: bold;
    margin-bottom: 5px;
}

.experience-duration {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 5px;
}

/* Timeline UI */
.timeline-container {
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding: 0 20px;
}

.timeline-item {
    display: flex;
    position: relative;
    margin-bottom: 40px;
}

.timeline-left {
    flex: 0 0 160px;
    text-align: right;
    padding-right: 35px;
    padding-top: 4px;
}

.timeline-date {
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
}

.timeline-location {
    color: var(--text-color);
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 6px;
}

.timeline-center {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-line {
    position: absolute;
    top: 15px;
    bottom: -45px;
    width: 2px;
    background-color: var(--border-color);
    opacity: 0.5;
    z-index: 0;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    background-color: var(--text-color);
    border-radius: 50%;
    position: relative;
    z-index: 1;
    margin-top: 6px;
    box-shadow: 0 0 0 4px var(--bg-color);
}

.timeline-right {
    flex: 1;
    padding-left: 35px;
    text-align: left;
}

.timeline-right h3,
.timeline-right h4,
.timeline-right p {
    text-align: left;
}

.timeline-role {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0 0 6px 0;
}

.timeline-company {
    font-size: 1.05rem;
    color: var(--text-color);
    opacity: 0.8;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.85;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.timeline-right .span-skills {
    background-color: #2b2b2b; /* similar styling as referential image */
    border: none;
    color: #e0e0e0;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    opacity: 0.9;
}

/* Certifications UI */
.cert-category-title-first {
    margin-bottom: 20px;
}

.cert-category-title {
    margin-top: 40px;
    margin-bottom: 20px;
}

.cert-card {
    justify-content: center;
    padding: 32px 20px;
}

.cert-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    background-color: var(--bg-color);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(163, 98, 255, 0.15);
}

.cert-icon img {
    width: 32px;
    height: 32px;
    /* Filter to match accent color */
    filter: invert(47%) sepia(87%) saturate(2250%) hue-rotate(242deg) brightness(101%) contrast(102%);
}

.cert-title {
    margin: 0;
    font-size: 1.15rem;
}

@media screen and (max-width: 650px) {
    .timeline-item {
        flex-direction: column;
    }
    .timeline-left {
        text-align: left;
        padding-right: 0;
        padding-bottom: 10px;
        flex: none;
        padding-left: 35px;
    }
    .timeline-center {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
    }
    .timeline-right {
        padding-left: 35px;
    }
    .timeline-line {
        top: 25px;
        bottom: -25px;
    }
    .timeline-dot {
        margin-top: 25px;
    }
}