/* ==========================================================================
   Umesh Patel — Portfolio Stylesheet
   Sharp, minimal dark theme: flat surfaces, crisp 1px borders, one accent.
   ========================================================================== */

:root {
    --bg: #0b0f17;
    --bg-elevated: #111623;
    --bg-hover: #161c2b;
    --border: #232a3a;
    --border-strong: #323b50;

    --text: #eef2f7;
    --text-secondary: #a3adc2;
    --text-muted: #6b7590;

    --accent: #5b8cff;
    --accent-strong: #3f74ff;
    --accent-soft: rgba(91, 140, 255, 0.12);
    --accent-border: rgba(91, 140, 255, 0.35);
    --green: #2fbf71;
    --green-soft: rgba(47, 191, 113, 0.12);
    --amber: #e0a526;

    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;

    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --ease: 0.18s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    color-scheme: dark;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; }
button { font-family: inherit; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mono { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); }
.accent { color: var(--accent); }

/* ---------- Section headers ---------- */
.section { padding: 5.5rem 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.section-desc { color: var(--text-secondary); font-size: 1.02rem; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(11, 15, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--ease);
}
.header.scrolled { border-bottom-color: var(--border); }

.nav-wrapper { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.logo-badge {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
}

.nav-links { display: flex; align-items: center; gap: 1.75rem; list-style: none; }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-muted); }

.mobile-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
    width: 36px;
    height: 36px;
    font-size: 1rem;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 9.5rem 0 5rem; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
    gap: 4rem;
    align-items: start;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.8rem;
    background: var(--green-soft);
    border: 1px solid rgba(47, 191, 113, 0.3);
    border-radius: var(--radius-xs);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0.5); }
    60% { box-shadow: 0 0 0 6px rgba(47, 191, 113, 0); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 3rem; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
}

.stat-item { padding: 1.1rem 1.25rem; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.25rem; }
.stat-item p { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* At-a-glance card */
.hero-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.hero-card-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.hero-card-list { display: grid; gap: 1rem; margin-bottom: 1.25rem; }
.hero-card-list dt { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.2rem; }
.hero-card-list dd { font-size: 0.95rem; color: var(--text); font-weight: 500; line-height: 1.5; }

.hero-card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ---------- Expertise ---------- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.highlight-card { background: var(--bg); padding: 1.75rem; transition: background var(--ease); }
.highlight-card:hover { background: var(--bg-elevated); }

.highlight-icon {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    margin-bottom: 1.1rem;
}

.highlight-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.highlight-card p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* ---------- Experience ---------- */
.timeline-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }

.filter-btn {
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-xs);
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--text-muted); }
.filter-btn.active { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent); }

.timeline { position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    top: 8px; bottom: 8px; left: 7px;
    width: 1px;
    background: var(--border-strong);
}

.timeline-item { position: relative; padding-left: 2.5rem; margin-bottom: 1.25rem; transition: opacity 0.25s ease; }
.timeline-item.hidden { display: none; }

.timeline-marker {
    position: absolute;
    left: 0; top: 22px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border-strong);
    z-index: 1;
}
.timeline-marker.current { border-color: var(--green); background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.timeline-marker.rf { border-color: var(--amber); }

.timeline-divider {
    position: relative;
    padding-left: 2.5rem;
    margin: 2.5rem 0 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--amber);
}
.timeline-divider.hidden { display: none; }
.timeline-divider::before {
    content: '';
    position: absolute;
    left: 4px; top: 50%;
    width: 7px; height: 7px;
    transform: translateY(-50%) rotate(45deg);
    background: var(--amber);
}

.timeline-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    transition: border-color var(--ease);
}
.timeline-item:hover .timeline-content { border-color: var(--border-strong); }

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-bottom: 1rem;
}

.role-title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.15rem; }
.role-note {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: var(--font-mono);
    color: var(--amber);
    border: 1px solid rgba(224, 165, 38, 0.4);
    border-radius: var(--radius-xs);
}
.company-name { color: var(--text-secondary); font-weight: 500; font-size: 0.95rem; }

.date-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    padding-top: 0.25rem;
}
.date-badge.current { color: var(--green); }

.timeline-bullets { list-style: none; margin-bottom: 1.25rem; }
.timeline-bullets li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}
.timeline-bullets li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.65em;
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 1px;
}

.tech-stack-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-top: 1rem; border-top: 1px solid var(--border); }

.tech-tag {
    padding: 0.2rem 0.55rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-xs);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
}

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

.skill-category-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.category-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.1rem; }
.category-icon {
    width: 32px; height: 32px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.category-header h3 { font-size: 1rem; font-weight: 600; }

.skills-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.skill-chip {
    padding: 0.3rem 0.65rem;
    background: var(--bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-size: 0.83rem;
    font-weight: 500;
    transition: border-color var(--ease);
}
.skill-chip:hover { border-color: var(--accent); }

/* ---------- Education ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }

.edu-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.edu-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.edu-details h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; line-height: 1.35; }
.edu-school { color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }

.contact-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: left;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    width: 100%;
    transition: border-color var(--ease), background var(--ease);
}
.contact-card:hover { border-color: var(--accent-border); background: var(--bg-hover); }

.contact-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.contact-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.contact-card p { color: var(--text-secondary); font-size: 0.88rem; word-break: break-all; }
.contact-hint { display: block; margin-top: 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 1.5rem; right: 1.5rem;
    padding: 0.75rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--green);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex; align-items: center; gap: 0.6rem;
    box-shadow: var(--shadow);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 2000;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---------- Footer ---------- */
.footer { padding: 2rem 0; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-link { color: var(--text-secondary); text-decoration: none; }
.footer-link:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 1.1rem; }
.footer-socials a { color: var(--text-secondary); font-size: 1.05rem; transition: color var(--ease); }
.footer-socials a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--border); }

    .nav-links {
        display: none;
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.mobile-open { display: flex; }
    .nav-links li a { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
    .nav-links li:last-child a { border-bottom: none; }
    .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-cta .btn-secondary { display: none; }
}

@media (max-width: 576px) {
    .hero { padding-top: 7rem; }
    .hero-title { font-size: 2.1rem; }
    .section { padding: 4rem 0; }
    .section-title { font-size: 1.7rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
    .stat-item:last-child { border-bottom: none; }
    .nav-cta .btn-primary { display: none; }
    .timeline-content { padding: 1.25rem; }
    .footer-inner { justify-content: center; }
}
