:root {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --card-bg: #f5f5f5;
    --accent-color: #333333;
    --transition: 0.3s ease;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --card-bg: #1e1e1e;
    --accent-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition), color var(--transition);
    line-height: 1.6;
}

/* Navigasi */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
}

/* Tombol */
.btn-outline {
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.btn {
    display: inline-block;
    background: var(--text-color);
    color: var(--bg-color);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 10%;
    min-height: 70vh;
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    font-weight: 600;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 450px;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Bagian Karya/Projects */
.projects {
    padding: 5rem 10%;
    text-align: center;
}

.projects h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 400;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    text-align: left;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Footer */
footer {
    padding: 5rem 10%;
    text-align: center;
    border-top: 1px solid var(--card-bg);
}

footer h2 {
    margin-bottom: 1rem;
    font-weight: 400;
}

.copyright {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsif untuk Layar Kecil */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }
    .hero-image {
        justify-content: center;
    }
    .nav-links {
        display: none; /* Menyembunyikan menu di mobile untuk kesederhanaan */
    }
}
