/* Minimal Black & White CSS Variables */
:root {
    --primary-color: #000000;
    --primary-dark: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-light: #666666;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-accent: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --border-radius: 0px;
    --border-radius-lg: 0px;
    --transition: all 0.2s ease;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Droid Sans Mono', 'Source Code Pro', monospace;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 14px;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    min-height: 100vh;
}

/* Header Styles */
.header {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 2rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.header::before {
    display: none;
}

.profile-section {
    display: block;
    position: relative;
    z-index: 1;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-family: inherit;
}

.title {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-family: inherit;
}

.description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    max-width: 500px;
    font-family: inherit;
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: inherit;
}

.contact-item i {
    width: 16px;
    text-align: center;
    color: var(--text-light);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Main Content */
.main-content {
    padding: 2rem;
}

.section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    position: relative;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
    margin-left: 1rem;
}

.section-title i {
    font-size: 1rem;
}

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

.skill-category h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.skill-tag {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border-color);
    font-size: 0.75rem;
    font-weight: 400;
    transition: var(--transition);
    font-family: inherit;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}

/* Experience Section */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border: 2px solid var(--bg-primary);
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-family: inherit;
}

.timeline-content h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-family: inherit;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    display: block;
    margin-bottom: 0.75rem;
    font-family: inherit;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: inherit;
}

.timeline-content li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    border-color: var(--primary-color);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.project-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: inherit;
}

.project-links {
    display: flex;
    gap: 0.5rem;
}

.project-links a {
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.85rem;
    font-family: inherit;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tech-tag {
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.2rem 0.4rem;
    border: 1px solid var(--border-color);
    font-size: 0.7rem;
    font-weight: 400;
    transition: var(--transition);
    font-family: inherit;
}

.tech-tag:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    border-color: var(--primary-color);
}

/* Education Section */
.education-item {
    background: var(--bg-primary);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
}

.education-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.education-item h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-family: inherit;
}

.education-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 400;
    display: block;
    margin-bottom: 0.75rem;
    font-family: inherit;
}

.education-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: inherit;
}

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.8rem;
    font-family: inherit;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    font-size: 0.8rem;
    font-family: inherit;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border: none;
    }

    .header {
        padding: 1.5rem 1rem;
    }

    .profile-section {
        text-align: left;
    }

    .name {
        font-size: 1.8rem;
    }

    .title {
        font-size: 1rem;
    }

    .main-content {
        padding: 1.5rem 1rem;
    }

    .section {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-card {
        padding: 1rem;
    }

    .timeline {
        padding-left: 1rem;
    }

    .timeline-item {
        padding-left: 1rem;
    }

    .timeline-marker {
        left: -1.5rem;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0.75rem;
    }

    .main-content {
        padding: 1rem 0.75rem;
    }

    .name {
        font-size: 1.6rem;
    }

    .project-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-links {
        align-self: flex-start;
    }
}

/* Dark mode support - manual toggle */
body.dark-mode {
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-light: #999999;
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-accent: #222222;
    --border-color: #333333;
    --primary-color: #ffffff;
}

/* Automatic dark mode based on system preference */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --text-light: #999999;
        --bg-primary: #000000;
        --bg-secondary: #111111;
        --bg-accent: #222222;
        --border-color: #333333;
        --primary-color: #ffffff;
    }
}

/* Print styles */
@media print {
    .container {
        border: none;
        max-width: none;
    }

    .header {
        background: white !important;
        color: black !important;
        border-bottom: 1px solid #ccc;
    }

    .name, .title, .description {
        color: black !important;
    }

    .contact-item {
        color: black !important;
    }

    .section {
        margin-bottom: 1.5rem;
    }

    .project-card {
        border: 1px solid #ccc;
    }

    .footer {
        display: none;
    }
}

/* Minimal focus styles and theme transitions */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enable smooth transitions for theme switching only */
body,
body * {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
