/* Reset dan dasar */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fafafa;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
button {
    cursor: pointer;
    border: none;
    background: transparent;
}

/* Variabel warna */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --light: #f8fafc;
    --dark: #1e293b;
    --success: #10b981;
}

/* Header & Nav */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}
.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
}
.logo .logo-accent {
    color: var(--primary);
}
.nav-list {
    display: flex;
    gap: 2rem;
}
.nav-link {
    font-weight: 500;
    color: var(--secondary);
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--primary);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--dark);
    transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active .hamburger {
    transform: rotate(45deg) translate(5px,5px);
}
.nav-toggle.active .hamburger::before {
    opacity: 0;
}
.nav-toggle.active .hamburger::after {
    transform: rotate(-90deg) translate(-5px,6px);
}

/* Hero */
.hero {
    background-color: var(--light);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
}
.hero-content {
    flex: 1;
    max-width: 500px;
}
.hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.highlight {
    color: var(--primary);
}
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}
.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.hero-image {
    flex: 1;
    text-align: right;
}
.hero-img {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
}

/* Section umum */
.section {
    padding: 5rem 0;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--dark);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* About */
.about {
    background-color: #fff;
}
.about-grid {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}
@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}
.about-text p {
    margin-bottom: 1rem;
    color: var(--secondary);
}
.about-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.stat-item {
    text-align: center;
    flex: 1;
    min-width: 80px;
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 0.25rem;
}

/* Experience */
.experience {
    background-color: var(--light);
}
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
    transform: translateX(-50%);
}
.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
}
.timeline-item:nth-child(odd) .timeline-content {
    float: right;
    clear: both;
}
.timeline-item:nth-child(even) .timeline-content {
    float: left;
    clear: both;
}
.timeline-date {
    position: absolute;
    width: 120px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    left: 50%;
    transform: translateX(-50%);
    margin-top: -0.5rem;
    font-size: 0.9rem;
}
.timeline-content {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    width: calc(50% - 60px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    position: relative;
}
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}
.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}
.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.timeline-company {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}
.timeline-details {
    margin-top: 0.5rem;
}
.timeline-details li {
    margin-bottom: 0.4rem;
    position: relative;
    padding-left: 1.2em;
}
.timeline-details li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Skills */
.skills {
    background-color: #fff;
}
.skills-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.skill-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
    border-bottom: 2px solid var(--light);
    padding-bottom: 0.25rem;
}
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.skill-name {
    font-weight: 500;
}
.skill-level {
    margin-left: auto;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Projects */
.projects {
    background-color: var(--light);
}
.projects-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.project-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.2s, box-shadow 0.2s;
}
.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.project-img img {
    height: 180px;
    object-fit: cover;
}
.project-content {
    padding: 1.25rem;
}
.project-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}
.project-desc {
    color: var(--secondary);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}
.tag {
    background: var(--primary);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.project-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}
.project-link:hover {
    text-decoration: underline;
}

/* Testimonials */
.testimonials {
    background-color: #fff;
}
.testimonials-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
}
.testimonial-item {
    min-width: 280px;
    background: var(--light);
    border-radius: 8px;
    padding: 1.5rem;
    scroll-snap-align: start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.testimonial-text {
    font-style: italic;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}
.testimonial-text::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.2rem;
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.2;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.author-info h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark);
}
.author-info p {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: var(--secondary);
}

/* Contact */
.contact {
    background-color: var(--light);
}
.contact-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    max-width: 500px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.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.1);
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.site-footer {
    background-color: var(--dark);
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}
.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.footer-brand .logo-accent {
    color: var(--primary);
}
.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 260px;
}
.footer-links h4,
.footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #fff;
}
.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}
.footer-social .social-icons {
    display: flex;
    gap: 0.75rem;
}
.footer-social .social-icons a {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.footer-social .social-icons a:hover {
    color: #fff;
}
.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
    font-size: 0.85rem;
    opacity: 0.7;
}
#year {
    font-weight: 600;
}

/* Responsif */
@media (max-width: 768px) {
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }
    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem 0;
        gap: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: none;
    }
    .nav-list.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
    .timeline::before {
        left: 20px;
    }
    .timeline-item {
        padding-left: 30px;
    }
    .timeline-date {
        position: relative;
        width: auto;
        transform: none;
        margin: 0 0 0.5rem 0;
        left: auto;
        text-align: left;
    }
    .timeline-content {
        width: calc(100% - 40px);
        float: none !important;
        margin-left: 20px !important;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 20px;
        margin-right: 0;
        float: none !important;
        clear: both;
    }
}