/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #1a1a1a;
    --color-text-muted: #666666;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-border: #e5e5e5;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-surface);
    min-height: 100vh;
}

@media (min-width: 900px) {
    .container {
        margin: 2rem auto;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        min-height: auto;
    }
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

h3 {
    font-size: 1rem;
    font-weight: 600;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 2rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.contact {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Sections */
section {
    margin-bottom: 2rem;
}

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

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

.skill-category h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

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

.skill-category li {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

/* Experience & Education */
.job, .edu-item {
    margin-bottom: 1.5rem;
}

.job:last-child, .edu-item:last-child {
    margin-bottom: 0;
}

.job-header {
    margin-bottom: 0.5rem;
}

.job-header h3 {
    display: inline;
}

.company, .school {
    color: var(--color-text-muted);
    margin-left: 0.5rem;
}

.company::before, .school::before {
    content: "@ ";
}

.dates {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

.job ul {
    margin-left: 1.25rem;
    color: var(--color-text-muted);
}

.job li {
    margin-bottom: 0.25rem;
}

/* Projects */
.project {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.project:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.project h3 {
    margin-bottom: 0.25rem;
}

.project p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* Certifications */
.certifications ul {
    list-style: none;
}

.certifications li {
    padding: 0.25rem 0;
}

.cert-date {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

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

.visitor-count {
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

#visitor-count {
    color: var(--color-accent);
    font-weight: 600;
}

/* Education details */
.edu-details {
    margin-top: 0.5rem;
    margin-left: 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.edu-details li {
    margin-bottom: 0.25rem;
}

/* Achievements */
.achievements ul {
    list-style: none;
}

.achievements li {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

/* Activities */
.activity {
    margin-bottom: 1rem;
}

.activity h3 {
    display: inline;
}

.activity .dates {
    display: inline;
    margin-left: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.activity .dates::before {
    content: "| ";
}

.activity ul {
    margin-top: 0.5rem;
    margin-left: 1.25rem;
    color: var(--color-text-muted);
}

/* Print styles */
@media print {
    body {
        background: white;
    }
    
    .container {
        box-shadow: none;
        padding: 0;
        margin: 0;
    }
    
    footer {
        display: none;
    }
}
