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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: radial-gradient(circle at 75% 20%, rgba(212, 175, 55, 0.10) 0%, transparent 35%), radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 40%), #0a0a0a;
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
}

#snow {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 1;
    opacity: 1;

    pointer-events: none;
}
/* NAVBAR */
.navbar {
    position: fixed;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
    backdrop-filter: blur(1px);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 35px;
}

#google_translate_element {
    display: none; /* Sembunyikan widget default */
}

.translate-icon {
    font-size: 18px;
    color: #d4af37;
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px;
    transition: all 0.3s ease;
}

.translate-icon:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

.logo {
    font-family: 'Fira Code', monospace;
    font-weight: bold;
    font-size: 20px;
    color: #d4af37;
    text-transform: none;
    letter-spacing: 2px;
    text-decoration: none;
}

.menu {
    display: flex;
    gap: 35px;
    list-style: none;
}

.menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.menu a:hover {
    color: #d4af37;
}

/* SECTION */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    position: relative;
    z-index: 2;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HERO */
.hero {
    padding-top: 120px;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    object-fit: cover;
    object-position: center 15%;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: white;
}

.hero p {
    font-size: 20px;
    color: #a8a08c;
    margin-bottom: 30px;
    font-weight: 500;
}

.btn-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* BUTTON */
.btn {
    border: 2px solid white;
    padding: 12px 30px;
    margin: 0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: #d4af37;
    color: #1a1500;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* PROFILE */
.profile-flex {
    display: flex;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-left {
    flex-shrink: 0;
}

.profile-left img {
    width: 280px;
    height: 280px;
    border-radius: 15px;
    border: 4px solid white;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transition: transform 0.3s ease;
    object-fit: cover;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
}

.profile-left img:hover {
    transform: scale(1.05);
}

.profile-right {
    flex: 1;
}

.profile-right h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #fff;
}

.profile-right hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, #d4af37 0%, transparent 100%);
    margin-bottom: 20px;
}

.profile-right p {
    font-size: 16px;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.12);
    border: 2px solid white;
    color: #d4af37;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #d4af37;
    color: #1a1500;
    transform: translateY(-5px);
}

/* SKILLS */
.skills-grid {
    display: flex;
    gap: 20px;
}

.skill-bar {
    background: #2a2416;
    height: 8px;
}

.skill-progress {
    background: #d4af37;
    height: 8px;
    width: 0;
}

/* SECTION TITLE */
.section-title {
    font-size: 42px;
    color: white;
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 16px;
    color: #a8a08c;
    text-align: center;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* EXPERIENCE */
.experience-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.experience-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.experience-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
}

.experience-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.company-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.company-logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    overflow: hidden;
}

.company-logo img {
    display: block;
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.company-info h3 {
    font-size: 20px;
    color: white;
    margin-bottom: 5px;
}

.company-info p {
    font-size: 14px;
    color: #a8a08c;
}

.company-info i {
    margin-right: 5px;
    color: #d4af37;
}

.experience-body {
    padding: 0;
}

.job-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.job-title h4 {
    font-size: 18px;
    color: white;
}

.duration {
    font-size: 13px;
    color: #a8a08c;
    white-space: nowrap;
}

.job-description {
    list-style: none;
    margin-bottom: 20px;
}

.job-description li {
    font-size: 14px;
    color: #d0d0d0;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.job-description li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #d4af37;
}

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

.tech-tag {
    background: rgba(212, 175, 55, 0.15);
    color: #d4af37;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.project-image-wrapper {
    position: relative;
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-link-overlay:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.project-info h3 {
    margin: 0;
    font-size: 18px;
    color: #ffffff;
    text-align: center;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #ccc;
    font-size: 13px;
}

.project-description {
    color: #ddd;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.project-template {
    margin: 0;
    font-size: 13px;
    color: #e6d5a8;
}

.project-template a {
    color: #d4af37;
    text-decoration: underline;
}

/* CERTIFICATES */
.certificates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.certificate {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 400px; /* Fixed height for uniform size */
}

.certificate img {
    width: 100%;
    height: 200px; /* Fixed height for image */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate:hover img {
    transform: scale(1.1);
}

.certificate-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.certificate-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #ffffff;
    text-align: center;
}

.institution-year {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 8px 0;
    gap: 10px;
}

.institution {
    display: flex;
    align-items: center;
    flex: 1;
    min-height: 32px;
    font-weight: bold;
    color: #ddd;
    filter: grayscale(1);
    font-size: 12px;
    line-height: 1.3;
}

.year {
    color: #ddd;
    filter: grayscale(1);
    font-size: 12px;
    white-space: nowrap;
}

.description {
    color: #ddd;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar-container {
        padding: 15px 20px;
        position: relative;
    }

    .menu {
    display: none;
    position: absolute;

    top: 70px;
    left: 0;

    width: 100%;

    background: rgba(10, 10, 10, 0.98);

    flex-direction: column;
    gap: 0;

    padding: 20px 0;

    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);

    z-index: 99999;
}

.menu.active {
    display: flex;
}

.menu li {
    width: 100%;
    text-align: center;
}

.menu a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
    }

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

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

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

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

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

    .project-image-wrapper img {
        height: 180px;
    }

    /* Hero */
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .btn-group {
        flex-direction: column;
        gap: 15px;
    }

    /* Profile */
    .profile-flex {
        flex-direction: column;
        text-align: center;
    }

    .profile-left img {
        width: 200px;
        height: 200px;
    }

    /* Certificates */
    .certificates {
        grid-template-columns: 1fr;
    }

    .certificate {
        height: auto;
    }

    .certificate img {
        height: 150px;
    }
}

/* SECTION COLORS */

#hero {
    background: rgba(20, 17, 10, 0.45);
}

#profile {
    background: rgba(0, 0, 0, 0.55);
}

#experience {
    background: rgba(20, 17, 10, 0.45);
}

#projects {
    background: rgba(0, 0, 0, 0.55);
}

#certificate {
    background: rgba(20, 17, 10, 0.45);
}