/* ==========================================
   SHARED PAGE LAYOUT (used by about & certs)
   ========================================== */

/* Active nav link */
.nav-link--active {
    color: var(--text-primary) !important;
}

.nav-link--active::after {
    width: 100% !important;
}

.page-wrapper {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 64px) 32px 100px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 64px;
    animation: fadeSlideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.page-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.page-heading {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #c8c8d2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.05;
}

.page-subheading {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Section labels */
.section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 28px;
}

/* ==========================================
   INTRO CARD
   ========================================== */
.intro-section {
    margin-bottom: 72px;
    animation: fadeSlideUp 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.1s;
}

.intro-card {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.intro-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #7850ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.02em;
    box-shadow: 0 0 30px rgba(41, 151, 255, 0.25);
}

.intro-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.intro-role {
    font-size: 13px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 16px;
}

.intro-bio {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 980px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(41, 151, 255, 0.20);
    transition: all 0.2s ease;
    cursor: default;
}

.tag:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 12px 2px var(--accent-glow);
    transform: translateY(-2px);
}

/* ==========================================
   CAREER TIMELINE
   ========================================== */
.timeline-section {
    margin-bottom: 72px;
    animation: fadeSlideUp 1s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.2s;
}

.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 24px;
    position: relative;
}

.timeline-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    padding-top: 6px;
}

.marker-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--text-tertiary);
    background: var(--bg);
    flex-shrink: 0;
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.marker-dot.current {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: 0 0 12px rgba(41, 151, 255, 0.5);
}

.marker-dot--edu {
    border-color: #7850ff;
    background: #7850ff;
}

.marker-line {
    width: 1px;
    flex: 1;
    min-height: 32px;
    background: linear-gradient(to bottom, var(--border), transparent);
    margin: 4px 0;
}

.timeline-content {
    flex: 1;
    padding-bottom: 40px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.timeline-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 980px;
    margin-bottom: 8px;
}

.badge-current {
    background: rgba(41, 151, 255, 0.15);
    color: var(--accent);
    border: 1px solid rgba(41, 151, 255, 0.3);
}

.badge-edu {
    background: rgba(120, 80, 255, 0.15);
    color: #a080ff;
    border: 1px solid rgba(120, 80, 255, 0.3);
}

.timeline-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.timeline-company {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.timeline-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.timeline-location,
.timeline-period {
    font-size: 12px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.timeline-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.timeline-bullets li {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.timeline-bullets li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--text-tertiary);
}

.timeline-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tool-chip {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-tertiary);
    transition: all 0.2s ease;
    cursor: default;
}

.tool-chip:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 12px 2px var(--accent-glow);
    transform: translateY(-2px);
}

/* ==========================================
   SKILLS — REDESIGNED
   ========================================== */
.skills-section {
    animation: fadeSlideUp 1.1s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0.3s;
}

/* Two-column master layout */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Shared block wrapper */
.skills-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px 26px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.skills-block-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

/* Right column stacks the two smaller blocks */
.skills-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Specializations: ordered rank list */
.skills-block--specializations {
    height: 100%;
}

.spec-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spec-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.spec-item:hover {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
}

.spec-item:hover .spec-bullet,
.spec-item:hover .spec-name {
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
}

.spec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.spec-bullet {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    transition: all 0.2s ease;
}

.spec-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    transition: all 0.2s ease;
}


/* Core Security Stack: icon rows */
.stack-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stack-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.stack-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.stack-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.stack-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* CrowdStrike has transparent red bg — use dark backing */
.stack-icon--cs-img {
    background: rgba(18, 8, 8, 0.7);
}

.stack-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stack-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.stack-paren {
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 12px;
}

.stack-sub {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Scripting & Infra: minimal pills */
.infra-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.infra-pill {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    cursor: default;
}

.infra-pill:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 12px 2px var(--accent-glow);
    transform: translateY(-2px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
    .intro-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 24px;
    }

    .intro-tags {
        justify-content: center;
    }

    .timeline-header {
        flex-direction: column;
        gap: 6px;
    }

    .timeline-meta {
        align-items: flex-start;
    }

    .page-wrapper {
        padding-left: 20px;
        padding-right: 20px;
    }

    .skills-layout {
        grid-template-columns: 1fr;
    }
}