/* Basic Reset & General Styles */
:root {
    --primary-color: #1a1a1a; /* Dark charcoal */
    --secondary-color: #eeeae5; /* Antique enamel*/
    --accent-color: #0c441a; /* Earthy Green */
    --text-color: #333;
    --background-color: #eeeae5;
    --font-family: "Lexend Deca", sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -2px;
}

ul {
    list-style: none;
}

/* Header & Navigation */
header {
    background: var(--background-color);
    border-bottom: 1px solid var(--secondary-color);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo h1 a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 3rem;
    letter-spacing: -3px;
}

nav .logo a:hover {
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--primary-color);
    font-weight: 400;
    letter-spacing: -1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Main Content & Sections */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 1rem;
    border-bottom: 1px solid var(--secondary-color);
}

section:last-of-type {
    border-bottom: none;
}

section#hero {
    text-align: center;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: none; /* Hero doesn't need a bottom border */
    padding-top: 2rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: #f9f9f9;
    border: 1px solid var(--secondary-color);
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.portfolio-item h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 400;
    letter-spacing: -1px;
}

/* Contact Section */
#contact {
    text-align: center;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    margin: 0 0.5rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #333;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: #333;
    color: #fff;
    font-weight: 400;
    letter-spacing: normal;
}

.social-links a:hover {
    background-color: #333;
    border-color: #333;
    text-decoration: none;
}

/* Footer */
footer {
    text-align: right;
    padding: 2rem 1rem;
    margin-top: auto;
    color: #888;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        justify-content: center;
        width: 100%;
    }

    section {
        padding: 3rem 0.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }
}
