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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #EDE8D8;
    background-color: #18160F;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
    background: rgba(22, 20, 13, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #EDE8D8;
    text-align: center;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    position: sticky;
    top: 10px;
    z-index: 100;
    border: 1px solid rgba(200, 150, 106, 0.18);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

header h1 {
    font-size: 1.3rem;
    margin: 0;
    color: #EDE8D8;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

header p { font-size: 0.85rem; color: #8A7E6E; margin: 0; white-space: nowrap; }

/* Sections */
section, .contact-info {
    background: #211E16;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid #3A3428;
    transition: border-color 0.25s ease;
}

section:hover, .contact-info:hover {
    border-color: #4A4438;
}

.contact-info { background: #211E16; border-left: 3px solid #C8966A; }

h2 {
    color: #EDE8D8;
    margin-bottom: 1rem;
    border-bottom: 1px solid #3A3428;
    padding-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}
h3 { color: #D4C8B4; margin-bottom: 0.5rem; }

ul { list-style-type: none; }
li { padding: 0.5rem 0; border-bottom: 1px solid #3A3428; }
li:last-child { border-bottom: none; }

a { color: #C8966A; text-decoration: none; transition: color 0.25s ease; }
a:hover { color: #D4AC84; }

/* Card base styles */
.project-card {
    background: #2A2620;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #3A3428;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 150, 106, 0.06), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before { left: 100%; }

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 150, 106, 0.4);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

/* Logo-style project card */
.project-card-logo {
    padding: 0;
    overflow: hidden;
}

.project-logo-wrap {
    background: #F5F0E8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #3A3428;
    height: 100px;
    overflow: hidden;
}

.project-logo {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

.project-logo-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    max-height: none;
    padding: 0;
}

.project-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.project-card-body h3 { color: #EDE8D8; margin-bottom: 0.6rem; }
.project-card-body p  { color: #B8A898; line-height: 1.5; margin-bottom: 1rem; }

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

/* Card text */
.project-card h3 { color: #EDE8D8; margin-bottom: 0.8rem; }
.project-card p  { color: #B8A898; line-height: 1.5; margin-bottom: 1rem; }

.project-tech {
    background: rgba(200, 150, 106, 0.1);
    color: #C8966A;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    text-align: center;
    border: 1px solid rgba(200, 150, 106, 0.25);
}

.project-links {
    display: flex;
    gap: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.project-card:hover .project-links { opacity: 1; transform: translateY(0); }

/* Always show project buttons on touch devices */
@media (hover: none) {
    .project-links { opacity: 1; transform: translateY(0); }
}

.project-btn {
    flex: 1;
    background: #C8966A;
    color: #18160F !important;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.project-btn:hover {
    background: #D4AC84;
    transform: translateY(-1px);
}

/* About section — two-column resume layout */
.resume-grid {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.75rem;
    align-items: start;
    margin-top: 1rem;
}

.resume-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.headshot {
    width: 160px;
    height: 160px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #3A3428;
    display: block;
}

.resume-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bio-text {
    color: #B8A898;
    line-height: 1.65;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .resume-grid {
        grid-template-columns: 1fr;
    }
    .resume-left {
        flex-direction: column;
        align-items: center;
    }
    .headshot { width: 150px; height: 150px; }
    .resume-btn { max-width: 160px; }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 { font-size: 1.1rem; }
    section { padding: 1.5rem; }
    .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
    .project-links { flex-direction: column; }
}

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

.matrix-category {
    background: #2A2620;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #3A3428;
}

.matrix-category h3 {
    margin-bottom: 1rem;
    color: #EDE8D8;
    text-align: center;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(200, 150, 106, 0.1);
    color: #C8966A;
    padding: 0.35rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
    border: 1px solid rgba(200, 150, 106, 0.25);
}

.skill-tag:hover {
    background: rgba(200, 150, 106, 0.18);
    transform: translateY(-1px);
}

/* Chrono Timeline */
.chrono-track {
    overflow-x: auto;
    padding: 0 8px 2rem 24px;
    scrollbar-width: thin;
    scrollbar-color: #C8966A #2A2620;
}

.chrono-track::-webkit-scrollbar { height: 6px; }
.chrono-track::-webkit-scrollbar-track { background: #2A2620; border-radius: 3px; }
.chrono-track::-webkit-scrollbar-thumb { background: #C8966A; border-radius: 3px; }
.chrono-track::-webkit-scrollbar-thumb:hover { background: #D4AC84; }

.chrono-axis {
    display: flex;
    align-items: flex-end;
    min-width: 720px;
    border-bottom: 2px solid #C8966A;
    padding-top: 2.5rem;
    position: relative;
}

.year-segment {
    display: flex;
    flex: 1;
    align-items: flex-end;
}

.year-end-cap {
    display: flex;
    align-items: flex-end;
}

.tick {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-width: 10px;
}

.tick::before {
    content: '';
    display: block;
    width: 1px;
    background: #8A7060;
    opacity: 0.5;
    height: 8px;
}

.year-tick::before {
    height: 22px;
    width: 2px;
    background: #C8966A;
    opacity: 1;
}

.year-label {
    position: absolute;
    bottom: -1.5rem;
    font-size: 0.72rem;
    color: #8A7060;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Experience Bars */
.exp-bar {
    position: absolute;
    height: 18px;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease, filter 0.2s ease;
    display: flex;
    align-items: center;
    min-width: 4px;
    overflow: hidden;
}

.exp-bar:hover {
    opacity: 1;
    filter: brightness(1.12);
    z-index: 10;
}

.exp-bar-label {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    padding: 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Tooltip */
#exp-tooltip {
    position: fixed;
    background: #211E16;
    border: 1px solid #4A4438;
    border-radius: 10px;
    padding: 12px 16px;
    max-width: 300px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

#exp-tooltip.visible { opacity: 1; }

.tooltip-title { color: #EDE8D8; font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.tooltip-org { color: #C8966A; font-weight: 600; font-size: 0.82rem; margin-bottom: 4px; }
.tooltip-dates { color: #8A7E6E; font-size: 0.76rem; margin-bottom: 8px; }

.tooltip-bullets { list-style: none; padding: 0; margin: 0; }

.tooltip-bullets li {
    color: #B8A898;
    font-size: 0.78rem;
    padding: 2px 0 2px 14px;
    border-bottom: none;
    position: relative;
}

.tooltip-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #C8966A;
}

/* Legend */
.exp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid #3A3428;
}

.legend-item { display: flex; align-items: center; gap: 7px; }

.legend-dot { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

.legend-text { font-size: 0.8rem; color: #B8A898; }

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

/* Updated Navigation */
nav {
    margin-top: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-btn {
    display: inline-block;
    color: #B8A898;
    background: transparent;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(200, 150, 106, 0.2);
    transition: all 0.25s ease;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    font-size: 0.78rem;
}

.nav-btn:hover {
    background: rgba(200, 150, 106, 0.1);
    border-color: rgba(200, 150, 106, 0.45);
    color: #EDE8D8;
}

.nav-btn.active {
    background: rgba(200, 150, 106, 0.15);
    border-color: #C8966A;
    color: #C8966A;
}

.nav-btn.active:hover {
    background: rgba(200, 150, 106, 0.22);
    color: #D4AC84;
}

@media (max-width: 600px) {
    header { flex-wrap: wrap; }
    header p { display: none; }
    nav { justify-content: center; gap: 0.4rem; }
    .nav-btn { padding: 5px 12px; font-size: 0.72rem; }
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    color: #C8966A;
    animation: blink 0.9s step-end infinite;
    margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* Currently inline — sits inside the right bio column */
.currently-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8FAB8E;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(143, 171, 142, 0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(143, 171, 142, 0); }
    100% { box-shadow: 0 0 0 0 rgba(143, 171, 142, 0); }
}

.currently-role { font-size: 0.85rem; color: #8A7E6E; }

/* Hobbies */
.hobbies-section { margin: 0; }

.hobbies-section h3 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8A7E6E;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hobby-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.hobby-item {
    background: transparent;
    border: 1px solid #3A3428;
    color: #B8A898;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    cursor: default;
}

.hobby-item:hover {
    background: rgba(200, 150, 106, 0.08);
    border-color: rgba(200, 150, 106, 0.35);
    color: #EDE8D8;
    transform: translateY(-1px);
}

.about-bottom {
    margin-top: 1.25rem;
}

/* Resume button under photo */
.resume-btn {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #C8966A;
    background: rgba(200, 150, 106, 0.08);
    border: 1px solid rgba(200, 150, 106, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.resume-btn:hover {
    background: rgba(200, 150, 106, 0.18);
    border-color: #C8966A;
    color: #D4AC84;
}

/* Compact one-line contact row */
.contact-links-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    background: #2A2620;
    border: 1px solid #3A3428;
    border-radius: 20px;
    font-size: 0.88rem;
    color: #B8A898;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.contact-chip:hover {
    border-color: rgba(200, 150, 106, 0.4);
    color: #EDE8D8;
    background: rgba(200, 150, 106, 0.08);
}


