/* Custom styles on top of Bootstrap */
:root {
    --bg-dark: #121212;
    --bg-muted: #1e1e1e;
    --text-main: #e0e0e0;
    --text-muted: #b0b0b0;
    --accent-blue: #0072B2;
    --accent-orange: #E69F00;
    --card-bg: #252525;
    --border-color: #333;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('university-of-washington-1630042.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
}

.profile-img {
    width: 350px;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.experience-header {
    background: linear-gradient(rgba(0, 30, 60, 0.8), rgba(0, 30, 60, 0.8)), url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Interstate_Bridge_from_Vancouver_Waterfront.jpg/1200px-Interstate_Bridge_from_Vancouver_Waterfront.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 1px;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card p {
    color: var(--text-main);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.social-icon {
    transition: opacity 0.2s, transform 0.2s;
}

.social-icon:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

footer a {
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-blue) !important;
}

footer {
    font-size: 0.9rem;
    color: var(--text-muted);
    background-color: var(--bg-dark) !important;
    border-top: 1px solid var(--border-color) !important;
}

.mermaid {
    background-color: var(--bg-muted);
}

/* Ensure Gantt chart is readable and doesn't get squashed */
.mermaid svg {
    max-width: 100% !important;
    height: auto !important;
}

.woodwork-img {
    height: 300px;
    object-fit: cover;
    border-radius: 4px 4px 0 0;
}

.woodwork-carousel-img {
    height: 500px;
    object-fit: contain;
    background-color: #000;
}

/* Compact Timeline Styles */
.timeline-container {
    overflow-x: auto;
    padding-bottom: 10px;
    background: var(--bg-muted);
    border-radius: 4px;
}

.timeline-svg {
    width: 100%;
    min-width: 800px;
    height: 180px;
}

.timeline-bar {
    stroke-width: 1;
    stroke: rgba(0, 0, 0, 0.5);
    rx: 4;
    ry: 4;
    transition: filter 0.2s;
    cursor: pointer;
}

.timeline-bar:hover {
    filter: brightness(1.1);
}

.timeline-bar.work {
    fill: var(--accent-blue);
}

.timeline-bar.education {
    fill: var(--accent-orange);
}

.timeline-legend-work {
    background-color: var(--accent-blue);
}

.timeline-legend-education {
    background-color: var(--accent-orange);
}

.timeline-label {
    font-size: 11px;
    fill: #fff;
    font-weight: 500;
}

.timeline-year-label {
    font-size: 10px;
    fill: var(--text-muted);
}

.timeline-grid-line {
    stroke: var(--border-color);
    stroke-width: 1;
}

.timeline-tooltip {
    position: absolute;
    background: var(--card-bg);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    pointer-events: none;
    z-index: 1000;
    display: none;
    min-width: 150px;
}

.timeline-tooltip h6 {
    margin-bottom: 2px;
    font-size: 13px;
    color: var(--text-main);
}

.timeline-tooltip p {
    margin-bottom: 0;
    font-size: 11px;
    color: var(--text-muted);
}

.badge-tech {
    font-size: 1.1rem;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.badge-tech:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

#narrative {
    background-color: var(--card-bg) !important;
    color: var(--text-main);
}

#narrative p {
    line-height: 1.8;
    color: var(--text-main);
}

#narrative .lead {
    font-style: italic;
    color: var(--text-main);
}

.experience-content h1 {
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: 25px;
    color: var(--text-main);
}

.experience-content h2 {
    color: var(--accent-blue);
    border-left: 5px solid var(--accent-blue);
    padding-left: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.experience-content h3 {
    font-size: 1.25rem;
    margin-top: 20px;
    color: var(--text-main);
}

.experience-content hr {
    margin: 30px 0;
    opacity: 0.3;
    background-color: var(--text-muted);
}

.experience-content ul {
    margin-bottom: 25px;
}

/* Tab overrides */
.nav-tabs {
    border-bottom-color: var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-muted);
    border-color: transparent;
}

.nav-tabs .nav-link:hover {
    border-color: var(--border-color);
}

.nav-tabs .nav-link.active {
    background-color: var(--bg-dark);
    color: var(--accent-blue);
    border-color: var(--border-color) var(--border-color) var(--bg-dark);
}

/* Button overrides for dark theme */
.btn-outline-primary {
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.btn-outline-primary:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.btn-outline-secondary {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.btn-outline-secondary:hover {
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    color: var(--bg-dark);
}