/* ══════════════════════════════════════════
   Timothy Gaynor — Shared Styles
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.1rem 2rem;
    transition: background 0.3s;
}

nav.nav-light {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e5e7eb;
}

nav.nav-dark {
    background: rgba(26,91,181,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

nav.nav-light .logo { color: #1a1a2e; }
nav.nav-dark .logo { color: #fff; }

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav.nav-light a { color: #555; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
nav.nav-light a:hover { color: #1a1a2e; }
nav.nav-light a.active { color: #2563eb; font-weight: 600; }

nav.nav-dark a { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
nav.nav-dark a:hover { color: #fff; }
nav.nav-dark a.active { color: #fff; font-weight: 600; }

/* ── MOBILE NAV ── */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    transition: 0.3s;
}

nav.nav-light .nav-toggle span { background: #1a1a2e; }
nav.nav-dark .nav-toggle span { background: #fff; }

/* ── PAGE WRAPPER ── */
.page {
    flex: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 7rem 2rem 4rem;
    width: 100%;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563eb;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

/* ── CARDS ── */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fafafa;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    margin-top: 0.5rem;
}

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

/* ── RESEARCH ── */
.research-summary {
    font-size: 1.05rem;
    color: #444;
    max-width: 750px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.doc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.doc-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    background: #fafafa;
    transition: background 0.2s;
}

.doc-item:hover { background: #f0f0f0; }

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.chart-card {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.chart-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.chart-subtitle {
    font-size: 0.78rem;
    color: #888;
    margin-top: -0.5rem;
    margin-bottom: 1rem;
}

/* ── BAR CHARTS ── */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bar-label {
    width: 140px;
    font-size: 0.78rem;
    color: #555;
    text-align: right;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 24px;
    background: #eef2ff;
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 6px;
    transition: width 0.6s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: white;
    min-width: 30px;
}

.bar-fill.accent { background: #f59e0b; }

/* ── PIE CHART ── */
.pie-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.pie {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(
        #2563eb 0deg 127deg,
        #60a5fa 127deg 190deg,
        #93c5fd 190deg 317deg,
        #bfdbfe 317deg 360deg
    );
    flex-shrink: 0;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #444;
}

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

/* ── SKILLS ── */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.5rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #333;
    background: #fafafa;
}

/* ── CURRENTLY ── */
.currently-list {
    list-style: none;
    max-width: 600px;
}

.currently-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
    color: #444;
}

.currently-list li:last-child { border-bottom: none; }

.currently-list .label {
    font-weight: 600;
    color: #1a1a2e;
    margin-right: 0.5rem;
}

/* ── CONTACT ── */
.contact-center {
    text-align: center;
    padding-top: 4rem;
}

.contact-center p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.contact-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.contact-btn:hover { background: #2563eb; }

/* ── FOOTER ── */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #aaa;
    border-top: 1px solid #eee;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }

    nav.nav-light ul { background: rgba(255,255,255,0.98); }
    nav.nav-dark ul { background: rgba(26,91,181,0.98); }

    nav ul.open { display: flex; }

    nav ul li a {
        display: block;
        padding: 0.85rem 2rem;
    }

    .page { padding: 6rem 1.5rem 3rem; }

    .charts-grid { grid-template-columns: 1fr; }

    .bar-label { width: 100px; font-size: 0.72rem; }

    .pie-container { justify-content: center; }

    .work-grid { grid-template-columns: 1fr; }
}
