/* Reset Dasar & Variabel */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af; /* Accent */
    --text-dark: #111827;
    --text-gray: #4b5563;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Layout Utility */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    margin-bottom: 5rem;
}

section-padding2 {
    margin-bottom: 5rem;
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        text-align: left;
    }
}

/* Header & Nav */
.header {
    background-color: var(--white);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 200px;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    .nav-links {
        display: flex;
    }
    .nav-links.active {
        position: static;
        flex-direction: row;
        box-shadow: none;
        padding: 0;
        width: auto;
    }
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin: 3rem 0 5rem 0;
}

.hero-image {
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
}

.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .hero-section {
        flex-direction: row;
    }
    .hero-text {
        text-align: left;
        width: 66%;
    }
    .hero-image-wrapper {
        width: 33%;
    }
    .hero-buttons {
        justify-content: flex-start;
    }
    .hero-text h1 { font-size: 3rem; }
    .hero-text h2 { font-size: 1.875rem; }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: #eff6ff; /* blue-50 */
}

.btn-block {
    display: block;
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Education*/
.repository {
    text-decoration: none;
    line-height: 1.2;
    font-weight: 500;
    color: #111827;
}
.repository li {
    margin-bottom: 1.5rem;
}
.card .repository{
    margin-bottom: 1.5rem;
}

/* Cards */
.card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* About Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    background-color: #eff6ff;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}

.stat-item h3 {
    color: var(--primary);
    font-weight: 700;
}

.stat-item p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Experience */
.experience-item:not(:last-child) {
    margin-bottom: 2rem;
}

.job-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 0rem;
}

.company-name {
    color: var(--primary);
    margin-bottom: 0%;
}

.job-desc {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: var(--text-gray);
}

.job-desc li { margin-bottom: 0.5rem; }

@media (min-width: 768px) {
    .job-header { flex-direction: row; }
}

/* Skills Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tags-container:last-child { margin-bottom: 0; }

.subsection-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.tag-blue { background-color: #dbeafe; color: var(--primary); }
.tag-green { background-color: #dcfce7; color: #15803d; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.info-item .icon {
    color: var(--primary);
    margin-right: 1rem;
    width: 20px;
}

.wa {
     text-decoration: none;
    line-height: 1.2;
    font-weight: 500;
    color: var(--text-dark);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--text-gray);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover { color: var(--primary); }

/* Form */
.form-group { margin-bottom: 1rem; }

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-gray);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.footer {
    background-color: #f3f4f6;
    padding: 3rem 0;
    text-align: center;
    color: var(--text-gray);
    margin-top: 4rem;
}

.footer-note {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #6b7280;
}