/* Reset & Base Styles */
:root {
    --bg-color: #0f0f0f;
    --text-primary: #e2e2e2;
    --text-secondary: #a1a1aa;
    --text-muted: #52525b;
    --accent-color: #5eead4; /* Muted Teal */
    --accent-hover: #99f6e4;
    --border-color: #27272a;
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --spacing-section: 8rem;
    --spacing-element: 2rem;
    
    --container-width: 900px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0 1.5rem;
}

::selection {
    background: rgba(94, 234, 212, 0.2);
    color: var(--accent-color);
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h2.section-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

a:hover {
    color: var(--accent-color);
}

/* Hero Section */
#hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 4rem;
}

.subheadline {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 2rem;
}

.btn-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-color);
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    border-bottom-color: var(--accent-color);
}

/* Sections General */
section {
    margin-bottom: var(--spacing-section);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-block p {
    max-width: 65ch;
}

/* Grid Layout for What I Do */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.grid-item h3 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.grid-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-item {
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
    transition: border-color 0.3s ease;
}

.project-item:hover {
    border-left-color: var(--accent-color);
}

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

.project-item p {
    margin-bottom: 0;
}

/* Notes List */
.notes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notes-list li a {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.2rem;
    display: inline-block;
}

.notes-list li a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.intro-text {
    margin-bottom: 2rem;
}

/* Contact Links */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.contact-links a {
    font-size: 1rem;
    color: var(--text-secondary);
}

.contact-links a:hover {
    color: var(--accent-color);
    padding-left: 0.5rem; /* Subtle movement */
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 4rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

footer p {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    :root {
        --spacing-section: 5rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
