/* ============================================================
   Computer Services of Austin — Bryan Bradsby
   style.css
   ============================================================ */

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:       #1e3a5f;
    --blue:       #0ea5e9;
    --dark:       #0f172a;
    --text:       #334155;
    --text-light: #64748b;
    --bg:         #f8fafc;
    --white:      #ffffff;
    --border:     #e2e8f0;
    --max-width:  1100px;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

/* ── Navigation ─────────────────────────────────────────────── */

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: var(--dark);
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.nav-brand {
    color: var(--blue);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

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

nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover { color: var(--blue); }

/* ── Hero ───────────────────────────────────────────────────── */

#hero {
    background: linear-gradient(135deg, var(--dark) 0%, var(--navy) 100%);
    color: white;
    min-height: 480px;
    padding: 140px 2rem 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero .container { max-width: var(--max-width); }

#hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.hero-title {
    color: var(--blue);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.hero-sub {
    color: #94a3b8;
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background: var(--blue);
    color: white;
    padding: 0.8rem 2.25rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.1s;
}

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

/* ── Section scaffolding ────────────────────────────────────── */

section { padding: 80px 2rem; }
.section-alt { background: var(--white); }

.container { max-width: var(--max-width); margin: 0 auto; }

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    display: inline-block;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--blue);
    margin-bottom: 0.5rem;
}

.section-sub {
    color: var(--text-light);
    margin-bottom: 2.5rem;
    margin-top: 0.4rem;
    font-size: 1rem;
}

/* ── Summary ────────────────────────────────────────────────── */

.summary-text {
    font-size: 1.1rem;
    line-height: 1.85;
    max-width: 820px;
    color: var(--text);
}

/* ── Services grid ──────────────────────────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    border-top: 4px solid var(--blue);
    transition: box-shadow 0.2s;
}

.service-card:hover { box-shadow: 0 6px 24px rgba(14,165,233,0.12); }

.service-icon { font-size: 2rem; margin-bottom: 0.9rem; }

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.65rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.75;
}

/* ── Experience timeline ────────────────────────────────────── */

.timeline {
    position: relative;
    padding-left: 2.25rem;
}

/* Vertical rule along the left edge */
.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 0;
    width: 2px;
    background: var(--blue);
    opacity: 0.25;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

/* Dot on the timeline */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.4rem;
    top: 0.45rem;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--blue);
    border: 2px solid var(--white);
    box-shadow: 0 0 0 3px rgba(14,165,233,0.35);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.2rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.15rem;
}

.timeline-org {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.timeline-item ul { list-style: none; }

.timeline-para {
    font-size: 0.93rem;
    line-height: 1.75;
    color: var(--text);
}

.timeline-item li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--text);
    margin-bottom: 0.35rem;
}

/* Chevron bullet */
.timeline-item li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

/* ── Skills grid ────────────────────────────────────────────── */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.skill-group {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.4rem;
}

.skill-group h3 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blue);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

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

.tag {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.25rem 0.7rem;
    border-radius: 4px;
    font-size: 0.83rem;
    white-space: nowrap;
}

/* ── About ──────────────────────────────────────────────────── */

.about-content { max-width: 820px; }

.about-content p {
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.memberships {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.badge {
    background: var(--navy);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 4px;
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ── Contact ────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info > p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: var(--text);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
    font-size: 0.97rem;
    color: var(--text);
}

.contact-detail a {
    color: var(--blue);
    text-decoration: none;
}

.contact-detail a:hover { text-decoration: underline; }

.contact-note {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.75;
}

.contact-note a { color: var(--blue); text-decoration: none; }
.contact-note a:hover { text-decoration: underline; }

/* ── Footer ─────────────────────────────────────────────────── */

footer {
    background: var(--dark);
    color: #64748b;
    text-align: center;
    padding: 2rem;
    font-size: 0.88rem;
}

footer a { color: var(--blue); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 768px) {
    #hero h1       { font-size: 2.1rem; }
    .hero-title    { font-size: 1.05rem; }
    nav ul         { display: none; }          /* mobile: hide nav links */
    .contact-grid  { grid-template-columns: 1fr; gap: 2rem; }
    .section-title { font-size: 1.5rem; }
}
