:root {
    /* Light theme colors */
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --border-color: #e5e7eb;
    --card-bg: #f8fafc;
}

[data-theme="dark"] {
    /* Dark theme colors */
    --bg-color: #1a1a1a;
    --text-color: #f8fafc;
    --primary-color: #f8fafc;
    --secondary-color: #a1a1aa;
    --border-color: #27272a;
    --card-bg: #27272a;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Layout */
.layout-container {
    display: grid;
    grid-template-columns: 60px 1fr 300px;
    min-height: 100vh;
    position: relative;
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 60px;
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
    z-index: 10;
}

.side-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.nav-icon {
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-icon:hover {
    opacity: 1;
}

/* Main content */
.main-content {
    grid-column: 2;
    padding: 4rem 6rem;
    width: calc(100% - 60px - 100px); /* Subtract sidebar widths */
    margin-left: 60px; /* Width of left sidebar */
}

.hero {
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1rem;
    color: var(--secondary-color);
}

.section {
    margin-bottom: 6rem;
}

.section h2 {
    margin-bottom: 2rem;
}

/* Info sidebar */
.info-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 300px;
    border-left: 1px solid var(--border-color);
    padding: 2rem;
    z-index: 10;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-info {
    margin-bottom: 4rem;
    text-align: center;
}

.coordinates {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.location-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
}

.contact-sidebar {
    margin-top: 2rem;
}

.contact-sidebar h2 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-links a.resume-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.contact-links a svg {
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.contact-links a:hover svg {
    color: var(--secondary-color);
}

/* Theme toggle */
#theme-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#theme-toggle:hover {
    opacity: 1;
}

#theme-toggle svg {
    display: none;
}

[data-theme="dark"] #theme-toggle .theme-light {
    display: block;
}

[data-theme="light"] #theme-toggle .theme-dark {
    display: block;
}

/* Experience section */
.job {
    margin-bottom: 2.5rem;
}

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

.job-header a {
    text-decoration: none;
}

.job-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
    display: inline-block;
}

.job-header a:hover h3 {
    text-decoration: underline;
}

.position-entry {
    margin-bottom: 0.75rem;
}

.position-entry:last-child {
    margin-bottom: 0;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.position-title {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0;
}

.period {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Projects section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-2px);
}

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

.project-header h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.project-link {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.project-link:hover {
    opacity: 1;
}

.project-description {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

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

.view-all {
    margin-top: 2rem;
    text-align: center;
}

.view-all a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.view-all a:hover {
    opacity: 0.7;
}

/* Education section */
.education-item {
    margin-bottom: 2.5rem;
}

.school-header {
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.school-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.school-header .location {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

.degree-entry {
    margin-bottom: 0.75rem;
}

.degree-entry:last-child {
    margin-bottom: 0;
}

.degree-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.degree-link {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
}

.degree-link:hover {
    text-decoration: underline;
}

.degree-header .period {
    font-size: 0.85rem;
    color: var(--secondary-color);
}

/* Utility classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* Responsive design */
@media (max-width: 1200px) {
    .layout-container {
        grid-template-columns: 60px 1fr;
    }

    .main-content {
        width: calc(100% - 60px);
        padding: 4rem 4rem 4rem 5rem;
    }

    .info-sidebar.desktop-only {
        display: none;
    }
}

@media (max-width: 768px) {
    .layout-container {
        grid-template-columns: 1fr;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 2rem 1.5rem 5rem;
    }

    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        height: 60px;
        border-right: none;
        border-top: 1px solid var(--border-color);
        background-color: var(--bg-color);
        padding: 0;
        z-index: 1000;
    }

    .side-nav {
        flex-direction: row;
        justify-content: space-around;
        padding: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        margin-bottom: 4rem;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .info-sidebar.mobile-only {
        display: block;
        position: static;
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid var(--border-color);
        margin-top: 4rem;
        padding: 2rem 1.5rem;
    }

    .location-info {
        margin-bottom: 3rem;
    }

    .contact-sidebar {
        margin-top: 0;
    }

    .school-header h3 {
        font-size: 1rem;
    }
    
    .degree-link,
    .school-header .location,
    .degree-header .period {
        font-size: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.5s ease-out;
}

.working-geniuses {
    margin: 3rem 0;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
}

.working-geniuses h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.working-geniuses h3 a {
    font-size: 0.8rem;
    opacity: 0.7;
}

.working-geniuses h3 a:hover {
    opacity: 1;
}

.genius {
    margin-top: 1.5rem;
}

.genius h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.genius p {
    color: var(--secondary-color);
    font-size: 0.85rem;
    margin-bottom: 0;
} 