:root {
    --bg-page: #FBFaf8;
    --bg-element: #ffffff;
    --text-main: #2b2927;
    --text-muted: #64605b;
    --accent-color: #A36B50; 
    --border-light: #e8e4dc;
    --border-dark: #d1cbc1;
    
    --font-heading: 'Lora', serif;
    --font-body: 'Lato', sans-serif;
}

[data-theme="dark"] {
    --bg-page: #1a1a1a;
    --bg-element: #242424;
    --text-main: #f0ede6;
    --text-muted: #a3a09a;
    --accent-color: #d89675; 
    --border-light: #333333;
    --border-dark: #555555;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--text-main);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #7a4f3b;
}

[data-theme="dark"] a:hover {
    color: #f7b290;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
    background-color: var(--bg-page);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Minimalist Theme Toggle Button */
#theme-toggle {
    background: var(--bg-element);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.05);
}

/* Hamburger Menu Button (Hidden on Desktop) */
#menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 7rem 0 5rem;
}

.kicker {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 2.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--text-main);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* Sections */
section {
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: border-color 0.4s ease;
}

section:last-of-type {
    border-bottom: none;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.skill-group h3 {
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

/* Projects */
.project-item {
    margin-bottom: 3.5rem;
}

.project-item:last-child {
    margin-bottom: 0;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.project-tech {
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-style: italic;
    font-family: var(--font-heading);
}

.project-desc {
    list-style: none;
    padding-left: 0;
}

.project-desc li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.project-desc li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--border-dark);
}

/* Experience & Education Timeline */
.resume-item {
    margin-bottom: 2.5rem;
    position: relative;
}

.resume-item:last-child {
    margin-bottom: 0;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-role {
    font-size: 1.2rem;
    font-weight: 600;
}

.resume-company {
    color: var(--text-main);
    font-style: italic;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.resume-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.resume-details {
    list-style: none;
}

.resume-details li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.resume-details li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--border-dark);
}

/* Scroll to Top Button (Page Up) */
#scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-element);
    color: var(--text-main);
    border: 1px solid var(--border-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

#scroll-top-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* 404 Page Styling */
.not-found-container {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 0;
    border-bottom: none;
}

.not-found-container h1 {
    font-size: 6rem;
    line-height: 1;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.not-found-container h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.not-found-container p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.btn-home {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-home:hover {
    background-color: var(--accent-color);
    color: var(--bg-element);
}

/* Footer */
footer {
    padding: 3.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1rem; }
    
    #menu-btn {
        display: block;
    }

    /* Dropdown Menu untuk Mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-page);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-light);
        padding: 1rem 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border-light);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .resume-header { 
        flex-direction: column; 
        gap: 0.2rem; 
    }
}
