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

body {
    position: static;
    font-family: 'Inter', sans-serif;
    background: #1A2A44;
    color: #FFFFFF;
    transition: all 0.3s ease;
}

section {
    padding-top: 60px; /* Ruang untuk navbar fixed di mobile */
    scroll-margin-top: 60px; /* Pastikan scroll ke anchor tidak tertutup navbar */
    margin-top: 0; /* Pastikan tidak ada margin atas pada section */
}

section > * {
    margin-top: 0; /* Pastikan elemen anak pertama tidak memiliki margin atas */
}

#home {
    padding-top: 0; /* Home tidak perlu padding atas */
    scroll-margin-top: 0;
}

/* Navbar */
.navbar {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    background: #1A2A44;
    z-index: 1001;
    transition: all 0.3s ease-in-out;
}

.profile-header {
    display: none;
    align-items: center;
    gap: 10px;
    position: absolute;
    left: 20px;
    margin-top: 20px;
}

.profile-header .profile-wrapper {
    position: relative;
}

.profile-header .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    position: relative;
    z-index: 1;
    vertical-align: middle;
}

.profile-header .profile-wrapper::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px dashed #00DDEB;
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

.profile-header .name-header {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    font-weight: 700;
    line-height: 40px;
    margin-top: -20px;
}

.nav-links {
    display: flex;
    gap: 20px;
    z-index: 999; /* Nav-links di bawah hamburger tapi atas konten */
}

.navbar .nav-links {
    display: flex;
    gap: 20px;
    margin-left: left; /* Perbaikan: Ubah dari "left" ke "auto" */
}

.navbar .nav-links a {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease-in-out;
}

.navbar .nav-links a:hover {
    color: #00DDEB;
    border-bottom: 2px solid #00DDEB;
}

/* Hamburger (sembunyi di desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1002; /* Hamburger di atas nav-links */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(to bottom, #1A2A44, #2E3B55);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    position: relative;
    z-index: 1;
}

.profile-wrapper::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 4px dashed #00DDEB;
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2em;
    color: #D3D3D3;
    margin-bottom: 30px;
}

.hero .btn {
    background: #00DDEB;
    color: #FFFFFF;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.2em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.hero .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

/* About Section */
.about {
    background: #FFFFFF;
    color: #1A2A44;
    padding: 80px 40px;
    text-align: center;
}

.about h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.about p {
    font-size: 1em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cv-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cv-preview,
.cv-download {
    position: relative;
    display: inline-block;
}

.cv-preview .btn,
.cv-download-btn {
    background: #00DDEB;
    color: #FFFFFF;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
}

.cv-preview .btn:hover,
.cv-download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

.cv-options {
    display: none;
    position: absolute;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    z-index: 1000;
    width: 150px;
    text-align: center;
}

.cv-options a {
    display: block;
    color: #1A2A44;
    text-decoration: none;
    padding: 10px;
    font-size: 0.9em;
    transition: background 0.3s;
}

.cv-options a:hover {
    background: #00DDEB;
    color: #FFFFFF;
}

.cv-preview:hover .cv-options,
.cv-download:hover .cv-options {
    display: block;
}

.about-details {
    max-width: 800px;
    margin: 0 auto;
}

.about-details h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-details .role {
    font-size: 1.1em;
    font-weight: 600;
    color: #00DDEB;
    margin-bottom: 15px;
}

.about-details .description {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.social-accounts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.account-card {
    background: #F5F5F5;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.account-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

.account-card .account-pic {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.account-card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.account-card p {
    font-size: 0.9em;
    color: #333;
    margin-bottom: 15px;
}

.account-socials {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.account-socials i {
    font-size: 1.5em;
    color: #1A2A44;
    transition: transform 0.3s;
}

.account-socials i:hover {
    transform: scale(1.2);
    color: #00DDEB;
}

/* Skills Section */
.skills {
    background: #1A2A44;
    padding: 80px 40px;
    text-align: center;
}

.skills h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.skills-column {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 2px solid #00DDEB;
    transition: transform 0.3s, box-shadow 0.3s;
}

.skills-column:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

.skills-column h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.skills-column ul {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
}

.skills-column ul li {
    font-size: 1em;
    color: #D3D3D3;
    margin: 5px 0;
}

.languages {
    margin-top: 40px;
}

.languages h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.language-progress {
    margin: 10px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.language-progress p {
    font-size: 1em;
    margin-bottom: 5px;
}

.progress-bar {
    background: #666;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    background: #00DDEB;
    height: 100%;
    transition: width 1s ease-in-out;
}

.programming-languages {
    margin-top: 40px;
}

.programming-languages h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.prog-lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    justify-items: center; /* Pusatkan card di dalam kolom grid */
}

.prog-lang-card {
    background: #D3D3D3;
    color: #1A2A44;
    padding: 20px 15px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 120px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.prog-lang-card img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.prog-lang-card p {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 10px;
}

.prog-lang-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 221, 235, 0.5);
}

/* Experience Section */
.experience {
    background: #FFFFFF;
    color: #1A2A44;
    padding: 80px 40px;
    text-align: center;
}

.experience h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: #00DDEB;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    background: #F5F5F5;
    padding: 20px;
    margin: 20px 0;
    border-radius: 10px;
    position: relative;
    width: 45%;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.timeline-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 55%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #00DDEB;
    border-radius: 50%;
    top: 20px;
    right: -30px;
}

.timeline-item:nth-child(even)::before {
    left: -30px;
}

.timeline-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.timeline-item .date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.timeline-item ul {
    list-style: disc;
    padding-left: 20px;
    font-size: 0.9em;
    color: #333;
}

/* Portfolio Section */
.portfolio {
    background: #1A2A44;
    padding: 80px 40px;
    text-align: center;
    overflow-x: hidden !important; /* Cegah scroll horizontal */
}

.portfolio h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.portfolio-filter {
    margin-bottom: 20px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #00DDEB;
    color: #FFFFFF;
}

.portfolio-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.portfolio-grid {
    display: flex;
    transition: transform 0.5s ease;
    width: max-content;
    /* cursor: grab; */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.portfolio-grid.filtered {
    justify-content: center;
    width: 100%;
}

.portfolio-grid::-webkit-scrollbar {
    height: 8px;
}

.portfolio-grid::-webkit-scrollbar-track {
    background: #2E3B55;
    border-radius: 5px;
}

.portfolio-grid::-webkit-scrollbar-thumb {
    background: #00DDEB;
    border-radius: 5px;
}

.portfolio-grid::-webkit-scrollbar-thumb:hover {
    background: #00A9B5;
}

.portfolio-item {
    flex: 0 0 250px;
    margin-right: 20px;
    min-width: 250px;
    max-width: 250px;
    box-sizing: border-box;
    background: #D3D3D3;
    color: #1A2A44;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s, opacity 0.3s;
    position: relative; /* Tambahkan untuk z-index */
}

.portfolio-item:last-child {
    margin-right: 0;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item:hover {
    transform: none;
    box-shadow: 0 0 20px rgba(0, 221, 235, 0.7);
    background: #E0E0E0;
    z-index: 1; /* Pastikan item yang di-hover berada di atas */
}

.portfolio-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 15px;
}

.portfolio-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.portfolio-item p {
    font-size: 0.9em;
    color: #333;
}

/* Certificates Section */
.certificates {
    background: #FFFFFF;
    color: #1A2A44;
    padding: 80px 40px;
    text-align: center;
    overflow-x: hidden !important; /* Cegah scroll horizontal */
}

.certificates h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.certificates-filter .filter-btn {
    background: #1A2A44;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.certificates-filter .filter-btn:hover,
.certificates-filter .filter-btn.active {
    background: #00DDEB;
    color: #FFFFFF;
}

.certificates-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.certificates-grid {
    display: flex;
    transition: transform 0.5s ease;
    width: max-content;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; /* Tambahkan scroll snapping */
}

.certificates-grid.filtered {
    justify-content: center;
    width: 100%;
}

.certificates-grid::-webkit-scrollbar {
    height: 8px;
}

.certificates-grid::-webkit-scrollbar-track {
    background: #2E3B55;
    border-radius: 5px;
}

.certificates-grid::-webkit-scrollbar-thumb {
    background: #00DDEB;
    border-radius: 5px;
}

.certificates-grid::-webkit-scrollbar-thumb:hover {
    background: #00A9B5;
}

.certificate-item {
    display: block; /* Pastikan default display adalah block */
    flex: 0 0 350px;
    background: #F5F5F5;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    margin-right: 20px;
    min-width: 350px;
    max-width: 350px;
    box-sizing: border-box;
    cursor: pointer; /* Tambahkan agar seluruh card terlihat bisa diklik */
    scroll-snap-align: start; /* Pastikan setiap card menjadi titik snap*/
}

.certificate-item:last-child {
    margin-right: 0;
}

.certificate-item.hidden {
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

.certificate-item:hover {
    transform: none;
    box-shadow: 0 0 20px rgba(0, 221, 235, 0.7);
    background: #FFFFFF;
}

.certificate-item .certificate-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    /* cursor: pointer; */
}

.certificate-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.certificate-item .issuer {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.certificate-item .date {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
}

.certificate-item p {
    font-size: 0.8em;
    color: #333;
}

.cert-grid-centered {
  justify-content: center !important;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #00DDEB;
    color: #FFFFFF;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2em;
    transition: opacity 0.3s;
    z-index: 10;
}

.arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

/* Certificate Popup */
.certificate-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.certificate-popup .popup-content {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.certificate-popup img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}

.certificate-popup .btn {
    background: #00DDEB;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.certificate-popup .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

/* Contact Section */
.contact {
    background: #1A2A44;
    padding: 80px 40px;
    text-align: center;
}

.contact h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5em;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.contact-info p {
    font-size: 1em;
    margin-bottom: 10px;
}

.contact-info a {
    color: #fffffff6;
    text-decoration: none;
}

.contact-info p a {
    color: #00DDEB;
    text-decoration: none;
}

.contact-info a:hover {
    color: #FFFFFF;
}

.social-links {
    margin-top: 20px;
    margin-bottom: 20px;
}

.social-links a {
    color: #00DDEB;
    text-decoration: none;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #FFFFFF;
}

.social-links i {
    font-size: 1.5em;
    margin-right: 10px;
}

.email-btn {
    color: #1A2A44;
    background: #00DDEB;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.2em;
    transition: transform 0.3s, box-shadow 0.3s;
    font-weight: 600;
}

.email-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

/* Footer */
.footer {
    background: #1A2A44;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #2E3B55;
}

.footer p {
    font-size: 0.9em;
    color: #D3D3D3;
}

.footer .social-links a {
    color: #00DDEB;
    text-decoration: none;
    margin: 0 10px;
}

.footer .social-links a:hover {
    color: #FFFFFF;
}

/* Scroll Buttons */
.scroll-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.back-to-top,
.back-to-bottom {
    background: #00DDEB;
    color: #FFFFFF;
    padding: 10px 15px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2em;
    transition: opacity 0.3s;
    display: none;
}

.back-to-top:hover,
.back-to-bottom:hover {
    opacity: 0.8;
}

/* Maintenance Popup */
.maintenance-popup,
.coming-soon-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #FFFFFF;
    color: #1A2A44;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.popup-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
}

.popup-content .btn {
    background: #00DDEB;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.popup-content .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 221, 235, 0.5);
}

/* Tambahkan di luar media query */
.navbar-home .profile-header {
  display: none !important; /* Sembunyikan profile-header di #home */
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    #home {
        padding-top: 20px; /* Beri ruang untuk header (60px tinggi + sedikit margin) */
    }

    /* Navbar */
    .navbar {
        padding: 15px 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1001;
        background: #1A2A44;
        transition: all 0.3s ease-in-out;
    }

    .navbar-home {
        background: transparent;
        padding: 15px 20px; /* Konsisten */
        height: 60px; /* Konsisten */
    }

    .navbar.scrolled {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 15px 20px; /* Konsisten */
        height: 60px; /* Konsisten */
        background: #1A2A44;
    }

    /* Profile Header */
    .profile-header {
        display: flex;
        position: static;
        margin-top: 0;
        align-items: center;
        gap: 8px;
        z-index: 1001; /* Pastikan di atas konten */
    }

    .profile-header .name-header {
        font-size: 0.9em;
        line-height: 1.2;
        margin-top: 0;
    }

    .profile-header .profile-pic {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid transparent;
        position: relative;
        z-index: 1;
        vertical-align: middle;
        margin-top: 15px;
    }

    .profile-header .profile-wrapper::before {
        content: '';
        position: absolute;
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
        border: 2px dashed #00DDEB;
        border-radius: 50%;
        margin-top: 15px;
        animation: spin 10s linear infinite;
    }

    /* Hamburger */
    .hamburger {
        display: flex;
        z-index: 1002;
        order: 2; /* Pastikan hamburger di kanan */
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background: #FFFFFF;
        transition: all 0.3s ease-in-out;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Nav links */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        width: 200px;
        background: rgba(26, 42, 68, 0.95);
        padding: 20px;
        text-align: center;
        z-index: 999;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
        transform-origin: top;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        left: 0;
        right: auto;
    }

    .navbar .nav-links {
        display: none; /* Pastikan nav-links benar-benar hilang */
        position: absolute;
        top: 60px; /* Sesuaikan dengan tinggi navbar */
        left: 0;
        width: 70%;
        flex-direction: column;
        background-color: #1a2a44; /* Sesuaikan dengan background navbar */
        padding: 10px 0;
    }

    .navbar .nav-links.active {
        display: flex; /* Hanya muncul saat class active ditambahkan */
    }

    .navbar .nav-links a {
        padding: 3px;
        text-align: center;
        width: 100%;
    }
    
    .navbar.scrolled .nav-links.active {
        left: auto;
        right: 0;
    }

    .nav-links a {
        font-size: 1.1em;
        margin: 11px 0;
        padding: 8px;
        color: #FFFFFF;
        text-decoration: none;
        transition: background 0.2s ease-in-out;
    }

    .nav-links a:hover {
        background: rgba(0, 221, 235, 0.2);
        border-radius: 5px;
    }

    /* Hero Section */
    .hero {
        height: auto;
        padding: 80px 20px;
        background: linear-gradient(to bottom, #1A2A44, #2E3B55);
        min-height: 100vh; /* Pastikan hero cukup tinggi */
    }

    .hero-content {
        padding-top: 60px;
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
    }

    .profile-pic {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid transparent;
        position: relative;
        z-index: 1;
    }

    .profile-wrapper {
        margin-bottom: 15px;
    }

    .profile-wrapper::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border: 3px dashed #00DDEB;
    }

    .hero h1 {
        font-size: 2em;
        margin-bottom: 8px;
    }

    .hero p {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .hero .btn {
        padding: 10px 20px;
        font-size: 1em;
        border-radius: 8px;
    }

    /* About Section */
    .about {
        padding: 40px 20px;
    }

    .about h2 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .about p {
        font-size: 0.9em;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .cv-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .cv-preview,
    .cv-download {
        width: 100%;
        text-align: center;
    }

    .cv-preview .btn,
    .cv-download-btn {
        padding: 10px 20px;
        font-size: 0.9em;
        border-radius: 8px;
    }

    .cv-options {
        width: 100%;
        left: 0;
        padding: 8px;
        border-radius: 8px;
    }

    .cv-options a {
        padding: 8px;
        font-size: 0.85em;
    }

    .about-details {
        max-width: 100%;
    }

    .about-details h3 {
        font-size: 1.5em;
        margin-bottom: 8px;
    }

    .about-details .role {
        font-size: 1em;
        margin-bottom: 10px;
    }

    .about-details .description {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    .social-accounts {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .account-card {
        padding: 15px;
        max-width: 100%;
    }

    .account-card .account-pic {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .account-card h4 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .account-card p {
        font-size: 0.85em;
        margin-bottom: 10px;
    }

    .account-socials i {
        font-size: 1.3em;
    }

    /* Skills Section */
    .skills {
        padding: 40px 20px;
    }

    .skills h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .skills-container {
        flex-direction: column;
        gap: 20px;
    }

    .skills-column {
        min-width: 100%;
        padding: 15px;
        border-radius: 10px;
    }

    .skills-column h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .skills-column ul li {
        font-size: 0.9em;
        margin: 4px 0;
    }

    .languages {
        margin-top: 20px;
    }

    .languages h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .language-progress {
        max-width: 100%;
        margin: 8px 0;
    }

    .language-progress p {
        font-size: 0.9em;
        margin-bottom: 4px;
    }

    .progress-bar {
        height: 8px;
        border-radius: 4px;
    }

    .programming-languages {
        margin-top: 20px;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Pastikan grid responsif */
        justify-items: center; /* Pusatkan card di mobile */
    }

    .programming-languages h3 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .prog-lang-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
        max-width: 100%;
        justify-items: center; /* Pastikan card tetap di tengah di mobile */
    }

    .prog-lang-card {
        width: 100px;
        height: 150px;
        padding: 15px 10px;
        border-radius: 8px;
    }

    .prog-lang-card img {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .prog-lang-card p {
        font-size: 0.9em;
    }

    /* Experience Section */
    .experience {
        padding: 40px 20px;
    }

    .experience h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .timeline {
        max-width: 100%;
        padding-left: 30px; /* Beri ruang lebih untuk garis biru */
    }

    .timeline::before {
        left: 10px;
        transform: none;
        width: 3px; /* Sedikit perkecil untuk estetika */
    }

    .timeline-item {
        padding: 10px; /* Kurangi padding lebih kecil lagi */
        margin-bottom: 10px; /* Kurangi jarak antar kotak */
        width: calc(100% - 30px); /* Kurangi lebar agar ada ruang untuk garis biru */
        margin-left: 20px; /* Beri margin kiri agar garis biru terlihat */
        box-sizing: border-box;
        border-radius: 8px; /* Sedikit kecilkan border-radius untuk estetika */
    }

    .timeline-item::before {
        left: -26px; /* Sesuaikan posisi titik biru agar sejajar dengan garis */
        right: auto;
        width: 14px; /* Kecilkan titik biru */
        height: 14px;
        top: 15px; /* Sesuaikan posisi vertikal */
    }

    .timeline-item h3 {
        font-size: 14px; /* Kecilkan ukuran font judul */
        margin-bottom: 4px; /* Kurangi jarak bawah */
    }

    .timeline-item .date {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .timeline-item ul {
        padding-left: 15px;
    }

    .timeline-item ul li {
        font-size: 12px; /* Kecilkan lagi ukuran font list */
        line-height: 1.3; /* Kurangi jarak antar baris */
        margin-bottom: 4px;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(even)::before {
        left: -26px;
    }

    /* Portfolio Section */
    .portfolio {
        padding: 40px 20px;
    }

    .portfolio h2 {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .portfolio-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9em;
        margin: 4px;
        border-radius: 15px;
    }

    .portfolio-container {
        padding: 0 20px;
    }

    .portfolio-grid {
        flex-wrap: nowrap;
        gap: 15px;
    }

    .portfolio-item {
        flex: 0 0 220px;
        min-width: 220px;
        max-width: 220px;
        padding: 15px;
        margin-right: 15px;
        border-radius: 8px;
    }

    .portfolio-item img {
        height: 120px;
        margin-bottom: 10px;
    }

    .portfolio-item h3 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }

    .portfolio-item p {
        font-size: 0.85em;
    }

    .arrow {
        padding: 8px 12px;
        font-size: 1em;
        border-radius: 50%;
    }

    .left-arrow {
        left: 10px; /* Beri jarak lebih dari tepi */
    }

    .right-arrow {
        right: 10px; /* Beri jarak lebih dari tepi */
    }

    /* Certificates Section */
    .certificates {
        padding: 40px 20px;
    }

    .certificates h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .certificates-filter .filter-btn {
        padding: 6px 12px; /* Kecilkan padding */
        font-size: 0.85em; /* Kecilkan font */
        margin: 4px;
        border-radius: 15px;
    }

    .certificates-container {
        padding: 0 20px;
    }

    .certificates-grid {
        flex-wrap: nowrap;
        gap: 15px;
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
        scroll-snap-type: x proximity; /* Pastikan snapping aktif di mobile */
    }

    .certificate-item {
        flex: 0 0 240px; /* Kecilkan lebar card */
        min-width: 240px;
        max-width: 240px;
        padding: 10px; /* Kecilkan padding */
        margin-right: 15px;
        border-radius: 8px;
        scroll-snap-align: start; /* Pastikan snapping per card di mobile */
        justify-content: center;
    }

    .certificate-img {
        height: 100px; /* Kecilkan tinggi gambar */
        margin-bottom: 10px;
    }

    .certificate-item h3 {
        font-size: 1em; /* Kecilkan font judul */
        margin-bottom: 8px;
    }

    .certificate-item .issuer,
    .certificate-item .date,
    .certificate-item p {
        font-size: 0.75em; /* Kecilkan font teks */
    }

    /* Contact Section */
    .contact {
        padding: 40px 20px;
    }

    .contact h2 {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .contact-container {
        flex-direction: column;
        gap: 20px;
    }

    .contact-info {
        min-width: 100%;
        text-align: center;
    }

    .contact-info p {
        font-size: 0.9em;
        margin-bottom: 8px;
    }

    .social-links {
        margin: 15px 0;
    }

    .social-links i {
        font-size: 1.8em;
        margin: 0 10px;
    }

    .email-btn {
        padding: 12px 25px;
        font-size: 1em;
        border-radius: 8px;
    }

    /* Footer */
    .footer {
        padding: 15px;
    }

    .footer p {
        font-size: 0.85em;
    }

    .footer .social-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .footer .social-links a {
        margin: 0 8px;
    }

    /* Scroll Buttons */
    .scroll-buttons {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }

    .back-to-top,
    .back-to-bottom {
        padding: 8px 12px;
        font-size: 1em;
        border-radius: 50%;
    }

    /* Popups */
    .maintenance-popup .popup-content,
    .coming-soon-popup .popup-content {
        max-width: 90%;
        padding: 20px;
        border-radius: 10px;
    }

    .popup-content h3 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }

    .popup-content p {
        font-size: 0.9em;
        margin-bottom: 15px;
    }

    .popup-content .btn {
        padding: 8px 15px;
        font-size: 0.9em;
        border-radius: 8px;
    }

    .certificate-popup .popup-content {
        max-width: 95%;
        padding: 15px;
        border-radius: 10px;
    }

    .certificate-popup img {
        max-height: 70vh;
        border-radius: 8px;
    }

    .certificate-popup .btn {
        padding: 8px 15px;
        font-size: 0.9em;
        margin-top: 10px;
    }
}

/* Desktop Styles */
@media screen and (min-width: 769px) {
    .nav-links {
        display: flex !important;
        position: static;
        transform: none;
        background: none;
        padding: 0;
        opacity: 1;
        max-height: none;
        overflow-y: visible;
        z-index: auto;
        margin-left: 20px; /* Tambahkan margin kiri kecil agar dekat dengan profile header */
    }

    .nav-links a {
        opacity: 1;
        margin: 0 10px;
    }

    .hamburger {
        display: none;
    }

    section {
        scroll-margin-top: 150px; /* Tingkatkan untuk desktop agar sesuai dengan offset */
    }
}