/* Simple Black & White Theme with Orange Accents */
:root {
    /* Core Colors */
    --black: #000000;
    --white: #ffffff;
    --orange: #ebbcba;
    --gray-light: #333333;
    --gray-medium: #666666;
    --gray-dark: #1a1a1a;
    
    /* Semantic Colors */
    --bg-primary: var(--black);
    --bg-secondary: var(--gray-dark);
    --bg-tertiary: var(--gray-light);
    --text-primary: var(--white);
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --accent-primary: var(--orange);
    --accent-secondary: var(--orange);
    --accent-warm: var(--orange);
    --accent-bright: var(--orange);
    --accent-purple: var(--orange);
    
    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle texture overlay */
.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 1px 1px, var(--text-primary) 1px, transparent 0),
        radial-gradient(circle at 10px 10px, var(--text-primary) 1px, transparent 0);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

/* --- Layout --- */
.layout {
    display: flex;
    min-height: 100vh;
    align-items: flex-start;
}

.sidebar {
    width: 220px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 10;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 2.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
    border-radius: var(--radius-md);
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
}

.sidebar-link:hover, .sidebar-link:focus {
    transform: translateY(-1px);
}

.sidebar-prompt {
    color: var(--accent-secondary);
    transition: color var(--transition-fast);
}

.sidebar-link:hover .sidebar-prompt, .sidebar-link:focus .sidebar-prompt {
    color: var(--accent-primary);
}

.sidebar-title {
    color: var(--text-primary);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.nav-link {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.05rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-md);
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover, .nav-link:focus {
    color: var(--accent-primary);
}

.main-area {
    flex: 1;
    padding: 3.5rem 3rem 2rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section {
    margin-bottom: 0;
    text-align: left;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 1.2rem;
    margin-top: 0;
    font-weight: 700;
    letter-spacing: 0.01em;
    position: relative;
    display: inline-block;
}

/* --- About Section --- */
.intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.opportunity-note {
    background: var(--bg-secondary);
    border: 1px solid var(--gray-light);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    position: relative;
}

.opportunity-label {
    color: var(--accent-warm);
    font-weight: 600;
    font-family: var(--font-mono);
}

.opportunity-label::before {
    content: "●";
    color: var(--accent-warm);
    margin-right: 0.5rem;
    font-size: 0.8rem;
    animation: pulse-dot 2s ease-in-out infinite;
}

.now-blurb {
    font-family: var(--font-mono);
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--gray-light);
    border-left: 3px solid var(--accent-primary);
    display: block;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
    margin-top: 0;
    margin-bottom: 2rem;
    width: 100%;
    position: relative;
}

.now-label {
    color: var(--accent-primary);
    font-weight: 600;
    margin-right: 0.5em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.now-label::before {
    content: "●";
    color: var(--accent-warm);
    font-size: 0.8rem;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Projects Section --- */
.projects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--highlight-med);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.3rem 1rem 1.3rem;
    min-width: 220px;
    max-width: 320px;
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: none;
    transition: border 0.15s, box-shadow 0.15s;
}

.project-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 2px 16px 0 rgba(156, 207, 216, 0.08);
}

.project-card h3 {
    font-family: var(--font-mono);
    font-size: 1.08rem;
    color: var(--accent-primary);
    margin-bottom: 0.2rem;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
}

.project-status {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-secondary);
    background: var(--highlight-low);
    border-radius: var(--radius-sm);
    padding: 0.15em 0.7em;
    display: inline-block;
    margin-top: 0.2em;
}

/* --- Timeline Section --- */
.timeline-compact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 0;
    position: relative;
    max-width: 600px;
}

.timeline-compact::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
}

.timeline-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--accent-primary);
    border: 3px solid var(--bg-primary);
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-top: 2px;
}

.timeline-row.current .timeline-dot {
    background: var(--accent-warm);
    box-shadow: 0 0 0 3px var(--accent-warm), 0 0 12px 0 rgba(235, 188, 186, 0.4);
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.timeline-role {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.timeline-place {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.5rem;
    max-width: 500px;
}

.timeline-desc a {
    color: var(--rose);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition-fast);
}

.timeline-desc a:hover {
    color: var(--iris);
    border-bottom-color: var(--iris);
}

/* --- Contact Section --- */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--highlight-low) 100%);
    border: 1px solid var(--highlight-med);
    border-radius: var(--radius-lg);
    padding: 1rem 1.4rem;
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}



.contact-link:hover, .contact-link:focus {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.contact-link svg {
    width: 18px;
    height: 18px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.contact-link:hover svg {
    color: var(--accent-primary);
    transform: scale(1.1);
}

/* Platform-specific accents */
.contact-link[href*="mailto"]:hover {
    border-color: var(--accent-warm);
    color: var(--accent-warm);
}

.contact-link[href*="mailto"]:hover svg {
    color: var(--accent-warm);
}

.contact-link[href*="github"]:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.contact-link[href*="github"]:hover svg {
    color: var(--orange);
}

.contact-link[href*="linkedin"]:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.contact-link[href*="linkedin"]:hover svg {
    color: var(--accent-primary);
}

/* --- Footer --- */
.footer {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--highlight-med);
    color: var(--text-muted);
    font-size: 0.98rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}


.footer-heart {
    color: var(--love);
}

.footer-year {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .main-area {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    .sidebar {
        width: 180px;
        padding: 2rem 1rem 1rem 1rem;
    }
    .sidebar-header {
        font-size: 1.2rem;
    }
}

@media (max-width: 700px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        flex-direction: row;
        width: 100%;
        min-height: unset;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-light);
        padding: 0.75rem 1rem;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    .sidebar-header {
        margin-bottom: 0;
        font-size: 1rem;
    }
    .sidebar-nav {
        flex-direction: row;
        gap: 1rem;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.5rem;
    }
    .main-area {
        padding: 1.5rem 1rem 1rem 1rem;
        gap: 2rem;
    }
    .main-area .contact-link {
        padding: 1rem;
        font-size: 0.9rem;
    }
    .projects-list {
        flex-direction: column;
        gap: 1rem;
    }
    .timeline-compact {
        max-width: 100%;
        padding: 0.5rem 0;
    }
    .timeline-compact::before {
        left: 6px;
    }
    .timeline-dot {
        width: 14px;
        height: 14px;
    }
    .section-title {
        font-size: 1.2rem;
    }
    .now-blurb {
        font-size: 0.9rem;
        padding: 0.9rem 1rem;
        margin-bottom: 1.5rem;
    }
    .opportunity-note {
        font-size: 0.9rem;
        padding: 0.9rem 1rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 0.5rem 0.75rem;
    }
    .sidebar-header {
        font-size: 0.95rem;
    }
    .sidebar-nav {
        gap: 0.75rem;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 0.25rem 0.4rem;
    }
    .main-area {
        padding: 1rem 0.75rem;
        gap: 1.5rem;
    }
    .section-title {
        font-size: 1.1rem;
    }
    .intro {
        font-size: 1rem;
    }
    .now-blurb, .opportunity-note {
        font-size: 0.85rem;
        padding: 0.8rem 0.9rem;
    }
    .timeline-content {
        gap: 0.1rem;
    }
    .timeline-role {
        font-size: 0.95rem;
    }
    .timeline-place {
        font-size: 0.85rem;
    }
    .timeline-desc {
        font-size: 0.9rem;
        margin-top: 0.3rem;
    }
    .contact-link {
        padding: 0.9rem 0.8rem;
        font-size: 0.85rem;
    }
    .footer {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        font-size: 0.9rem;
    }
}