/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #fdfaf6;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --accent: #4a7c59;
    --accent-light: #e8f0ea;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.site-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background: radial-gradient(circle at center, #ffffff 0%, #fdfaf6 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Sticky Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(253, 250, 246, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--accent-light);
}

.header-nav {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* macOS Style Window Dots */
.header-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.red { background: #ff5f56; }
.yellow { background: $\text{ffbd2e}$; } /* Note: Fixed broken variable reference from user input */
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

/* Quote Header Section */
.quote-header {
    margin-bottom: 1rem; /* Reduced margin because links follow immediately */
    padding: 2rem 0 0 0;
    text-align: center;
}

blockquote {
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-family: "Georgia", serif;
}

blockquote cite {
    display: block;
    font-size: 0.9rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1rem;
    color: var(--accent);
}

/* Links Section - Now positioned high in the flow */
.links { 
    margin-bottom: 3rem; 
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--accent-light);
}
.links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 50    px; /* Fixed typo */
    font-weight: 500;
    padding: 5px 10px;
    transition: var(--transition);
}
.links a:hover { background: var(--accent-light); color: var(--accent); }

/* Main Content Area */
.container {
    max-width: 650px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem 2rem;
    flex-grow: 1;
}

/* Profile/Bio Header */
.profile-header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.bio {
    margin-bottom: 4rem;
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Projects Section */
.projects h2 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 2rem;
    display: block;
}

.project-item {
    margin-bottom: 3rem;
    padding: 1.5rem;
    border-left: 2px solid var(--accent-light);
    transition: var(--transition);
}

.project-item:hover {
    border-left: 2px solid var(--accent);
    background-color: rgba(74, 124, 89, 0.03);
    transform: translateX(5px);
}

.project-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-link {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
}

/* Actions */
.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.btn-download, .btn-contact {
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    width: 10    px; /* Fixed typo */
    width: 100%;
    max-width: 250px;
    text-align: center;
    transition: var(--transition);
}
.btn-download { border: 1px solid var(--text-main); color: var(--text-main); }
.btn-contact { background: var(--text-main); color: #fff; }
.btn-contact:hover { transform: translateY(-3px); background: var(--accent); }

/* Sticky Footer */
.site-footer {
    position: sticky;
    bottom: 0;
    background-color: rgba(253, 250, 246, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-top: 1px solid var(--accent-light);
}
