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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: #343a40; 
    background-color: #fdfdff; 
    font-size: 16px;
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale; 
}

/* Kontainer Utama */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 0 15px; 
}

/* Header dan Navigasi */
header {
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(10px); 
    color: #333;
    padding: 0.8rem 0; 
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    transition: padding 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 0.6rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}

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

.logo {
    font-size: 1.9rem; 
    font-weight: 800; 
    color: #0062cc; 
    text-decoration: none;
    letter-spacing: -0.5px; 
}

.logo span {
    color: #343a40;
}
.websitelogo{
    width: 50px;
    height: 50px; 
    margin-right: 10px; 
    vertical-align: middle;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px; 
}

nav ul li a {
    color: #495057; 
    text-decoration: none;
    font-weight: 600; 
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.3s ease, background-color 0.3s ease;
    position: relative;
}
/* Efek garis bawah pada hover/active */
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0062cc;
    transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: #0062cc;
}
nav ul li a:hover::after,
nav ul li a.active::after {
    width: 70%;
}


/* Tombol Menu Mobile (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px; 
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.menu-toggle span {
    width: 100%;
    height: 2.5px;
    background-color: #343a40;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}
.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* Bagian Utama (Main Content) */
main {
    padding-top: 120px;
}

section {
    padding: 90px 0;
    min-height: auto; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

section:nth-child(odd) { transition-delay: 0.1s; }
section:nth-child(even) { transition-delay: 0.2s; }


#about, #projects ,#experience {
    margin-bottom: 30px; 
}


section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: #212529;
    font-weight: 800;
    position: relative;
    padding-bottom: 20px;
    letter-spacing: -0.5px;
}
section h2.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background-color: #0062cc;
    border-radius: 3px;
}


/* Hero Section */
#hero {
    text-align: center;
    background-color: #fdfdff;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 850px;
    margin: auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 800;
    color: #212529;
    line-height: 1.2;
}
.hero-content h1 .highlight {
    color: #0062cc;
}
.hero-content .subtitle {
    font-size: 1.6rem;
    margin-bottom: 35px;
    color: #495057;
    font-weight: 400;
}
.hero-content .hero-description { 
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto 30px auto;
}
.hero-social-links a {
    color: #495057;
    font-size: 1.6rem; /* Ikon sosial lebih kecil agar tidak terlalu dominan */
    margin: 0 12px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.hero-social-links a:hover {
    color: #0062cc;
    transform: scale(1.1); /* Efek sedikit membesar */
}
.cta-button {
    display: inline-block;
    background: #0062cc;
    color: #fff;
    padding: 16px 40px; 
    text-decoration: none;
    border-radius: 50px; 
    font-weight: 700;
    font-size: 1.15rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0, 98, 204, 0.25);
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: #004a99; /* Warna hover lebih gelap */
    transform: translateY(-3px) scale(1.02); /* Efek angkat lebih jelas */
    box-shadow: 0 8px 25px rgba(0, 98, 204, 0.3);
}
#about {
    background-color: #ffffff;
    padding: 60px 0;
}
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; 
    gap: 60px; 
}
.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 16px; 
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    border: 6px solid #fff;
}

.about-text {
    flex: 1.5; 
    min-width: 300px;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0062cc;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 18px;
    font-size: 1.1rem; 
    color: #495057;
}

.skills-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}
.skills-list li {
    background-color: #eef3f8; 
    color: #0062cc; 
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600; 
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.skills-list li:hover {
    background-color: #0062cc;
    color: #fff;
    transform: translateY(-2px);
}

#experience{
    background-color: #f3f4f6;
    padding: 60px 0;
}
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    margin-bottom: 40px;
}
.timeline-wrapper {
    position: relative;
}
.timeline-line-element {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #e5e7eb;
    transform: translateX(-50%);
    display: none;
}
.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}
.timeline-dot-element {
    position: absolute;
    top: 20px;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #3b82f6; /* blue-500 */
    transform: translateX(-50%);
    z-index: 10;
    border: 3px solid white;
}
.timeline-content-box {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease-in-out;
    width: 100%;
}
.timeline-content-box:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.timeline-item.align-left .timeline-content-box::before,
.timeline-item.align-right .timeline-content-box::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}
.timeline-item.align-left .timeline-content-box::before {
    right: -10px;
    border-left: 10px solid white;
}
.timeline-item.align-right .timeline-content-box::before {
    left: -10px;
    border-right: 10px solid white;
}
.timeline-content-box h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;/* mb-2 */
}
.timeline-content-box .meta-info {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}
.timeline-content-box .date-range {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;/
}
.timeline-content-box ul {
    list-style-type: disc;
    list-style-position: inside;
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.timeline-content-box ul li + li {
    margin-top: 0.25rem;
}
.skill-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.skill-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
}
.skill-tag.react { background-color: #dbeafe; color: #1d4ed8; }
.skill-tag.nodejs { background-color: #d1fae5; color: #047857; }
.skill-tag.tailwind { background-color: #fef3c7; color: #b45309; }
.skill-tag.leadership { background-color: #ede9fe; color: #6d28d9; }
.skill-tag.net { background-color: #fee2e2; color: #b91c1c; }
.skill-tag.sqlserver { background-color: #e0e7ff; color: #4338ca; }
.skill-tag.azuredevops { background-color: #fce7f3; color: #be185d; }
.skill-tag.ecommerce { background-color: #f3f4f6; color: #374151; }
.skill-tag.python { background-color: #ccfbf1; color: #0d9488; }
.skill-tag.django { background-color: #ffedd5; color: #c2410c; }
.skill-tag.javascript { background-color: #cffafe; color: #0e7490; }
.skill-tag.git { background-color: #ecfccb; color: #4d7c0f; }

#projects {
    background-color: #f8f9fc;
    padding: 60px 0;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    margin: 0 auto;
    gap: 40px;
}
.project-item {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transisi lebih baik */
}
.project-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.project-image-container {
    position: relative;
    width: 100%;
    height: 240px; 
    overflow: hidden;
}
.project-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.project-item:hover .project-image-container img {
    transform: scale(1.05); 
}
.project-content {
    padding: 30px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-item h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #0062cc;
    font-weight: 700;
}
.project-item .project-description {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 18px;
    flex-grow: 1;
}
.project-item .project-tech {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 25px;
}
.project-item .project-tech strong {
    color: #343a40;
}

.project-links a {
    text-decoration: none;
    color: #0062cc;
    font-weight: 700; 
    margin-right: 18px;
    font-size: 0.95rem;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}
.project-links a:hover {
    color: #004a99;
    letter-spacing: 0.5px; 
}
.project-links a i {
    margin-right: 6px;
}

/* Footer */
footer {
    background: #212529; 
    color: #adb5bd;
    text-align: center;
    padding: 40px 0;
    font-size: 0.95rem;
}
footer p {
    margin-bottom: 12px;
}
.footer-social-links a {
    color: #00aaff;
    margin: 0 12px;
    text-decoration: none;
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.footer-social-links a:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Tombol Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: #0062cc;
    color: white;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 1.8rem;
    border-radius: 50%; /
    cursor: pointer;
    display: none;
    z-index: 999;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.scroll-to-top:hover {
    background-color: #004a99;
    transform: scale(1.05) translateY(-2px);
}


/* Responsive Design */
@media (max-width: 992px) { /* Breakpoint tablet */
    .about-container {
        gap: 40px;
    }
    .about-image img {
        max-width: 320px;
    }
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
    }
}


@media (max-width: 768px) {
    .logo {
        font-size: 1.6rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: calc(100% - 1px); /* Tepat di bawah header */
        left: 0;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(8px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.08);
        padding: 15px 0;
        border-top: 1px solid #eee;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 12px 0;
        text-align: center;
    }
    nav ul li a::after { /* Hilangkan garis bawah di mobile */
        display: none;
    }
    nav ul li a:hover, nav ul li a.active {
        background-color: rgba(0, 98, 204, 0.08); /* Latar hover di mobile */
    }
    .menu-toggle {
        display: flex;
    }
    main {
        padding-top: 100px;
    }
    section {
        padding: 70px 0;
    }
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content .subtitle {
        font-size: 1.3rem;
    }
    .about-container {
        text-align: center;
    }
    .about-image {
        margin-bottom: 30px;
    }
    .about-image img {
        max-width: 300px;
    }
    .skills-list {
        justify-content: center;
    }

    section h2.section-title {
        font-size: 2.4rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }
    .timeline-line-element {
        left: 20px;
        transform: translateX(0);
        display: block; /* Ensure line is visible on mobile */
    }
    .timeline-dot-element {
        left: 20px;
        transform: translateX(-50%);
    }
    .timeline-item {
        padding-left: 30px;
        padding-right: 0;
        margin-bottom: 2rem;
    }
    .timeline-content-box {
        width: 100%;
        text-align: left !important;
        margin-left: 0;
        margin-right: 0;
    }
    .timeline-item.align-left .timeline-content-box::before,
    .timeline-item.align-right .timeline-content-box::before {
        left: -10px;
        right: auto;
        border-left: none;
        border-right: 10px solid white;
    }
    .timeline-item.align-left .timeline-content-box ul,
    .timeline-item.align-right .timeline-content-box ul {
        text-align: left !important;
        list-style-type: disc !important;
    }
    .timeline-item.align-left .skill-tags,
    .timeline-item.align-right .skill-tags {
        justify-content: flex-start !important;
    }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content .subtitle {
        font-size: 1.1rem;
    }
    .cta-button {
        padding: 14px 30px;
        font-size: 1rem;
    }
    section h2.section-title {
        font-size: 2rem;
    }
    section h2.section-title::after {
        width: 80px;
        height: 4px;
    }
    .project-item h3 { font-size: 1.4rem; }
    .project-item .project-description { font-size: 0.9rem; }
}
@media (min-width: 768px) {
    .timeline-item {
        display: flex;
    }
    .timeline-item.align-right {
        justify-content: flex-end;
        margin-right: 0;
    }
    .timeline-item.align-left {
        justify-content: flex-start;
    }
    .timeline-line-element {
        display: block;
    }
    .timeline-content-box {
        width: 41.666667%;
    }
    .timeline-item.align-left .timeline-content-box {
        text-align: right;
    }
    .timeline-item.align-left .timeline-content-box ul {
        text-align: right;
        list-style-type: none;
    }
    .timeline-item.align-left .timeline-content-box ul li {
        text-align: right;
    }
    .timeline-item.align-left .skill-tags {
        justify-content: flex-end;
    }
}

