:root {
    --primary-green: #2E8B57; /* SeaGreen */
    --secondary-green: #3CB371; /* MediumSeaGreen */
    --background-light: #F0FFF0; /* Honeydew - Latar belakang hijau sangat muda */
    --card-background: #FFFFFF; /* Warna kartu putih bersih */
    --text-dark: #333333;
    --text-light: #f4f4f4;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 20px;
}

/* Navigation Bar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ddd;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-green);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 90vh; /* Sedikit lebih pendek agar tidak menutupi konten */
    padding-top: var(--nav-height);
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid var(--primary-green);
    object-fit: cover;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 10px 0;
    color: var(--text-dark);
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #555;
}

/* Main Content Sections */
main section {
    padding: 60px 0;
    text-align: center;
}

#about {
    background-color: var(--card-background);
}

main h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

main h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Project Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    text-align: left;
}

.project-card {
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3, .project-card p, .tech-stack, .project-links {
    padding: 0 20px;
}

.project-card h3 {
    margin-top: 15px;
    color: var(--text-dark);
}

.project-card p {
    color: #555;
}

.tech-stack {
    padding-top: 10px;
    flex-grow: 1;
}

.tech-stack span {
    display: inline-block;
    background-color: var(--background-light);
    color: var(--secondary-green);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 5px 5px 5px 0;
}

.project-links {
    padding-bottom: 20px;
    margin-top: 15px;
}

.button {
    display: inline-block;
    background-color: var(--primary-green);
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.button:hover {
    background-color: var(--secondary-green);
}

.button.secondary {
    background-color: #6c757d;
}

.button.secondary:hover {
    background-color: #5a6268;
}

/* Contact Section */
#contact {
    background-color: #333;
    color: var(--text-light);
}

#contact h2, #contact p {
    color: var(--text-light);
}

#contact h2::after {
    background: var(--primary-green);
}

.social-links a {
    font-size: 2.5rem;
    color: var(--text-light);
    margin: 0 15px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-green);
    transform: translateY(-5px);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #b6d7ae;
    color: var(--text-muted);
}