/* ============================================================
   Experience, Education & Skills Sections — About Page
   ============================================================ */

/* ---- Shared Section Helpers ---- */
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* ---- Sub-title standalone (outside .section-title) ---- */
.experience-section .sub-title,
.background-section .sub-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b70808;
    margin-bottom: 10px;
}

/* ============================================================
   EXPERIENCE TIMELINE
   ============================================================ */
.experience-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Vertical connecting line */
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 180px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* Each row */
.exp-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 0 40px;
    padding-bottom: 50px;
    position: relative;
}

.exp-item:last-child {
    padding-bottom: 0;
}

/* Left: date + dot */
.exp-date {
    position: relative;
    text-align: right;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-top: 4px;
}

.exp-date .date-range {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.exp-dot {
    position: absolute;
    right: -6px;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #b70808;
    border: 2px solid #111111;
    box-shadow: 0 0 0 3px rgba(183, 8, 8, 0.2);
}

/* Right: content */
.exp-content {
    padding-left: 0;
}

.exp-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.exp-role {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

.exp-company {
    font-size: 14px;
    font-weight: 600;
    color: #b70808;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.exp-desc {
    font-size: 16px;
    line-height: 1.8;
    color: #888;
    margin-bottom: 18px;
}

/* Metric tags */
.exp-metrics {}

.metric-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 4px 12px;
    letter-spacing: 0.5px;
}

/* ============================================================
   BACKGROUND — Education & Skills
   ============================================================ */
.bg-section-block {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 44px 40px 48px;
    height: 100%;
}

.bg-block-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: 28px;
    margin-bottom: 36px !important;
}

.bg-block-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #b70808;
    flex-shrink: 0;
    background: rgba(183, 8, 8, 0.07);
}

.bg-block-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

/* ---- Education list ---- */
.edu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.edu-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0 24px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    align-items: start;
}

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

.edu-item:first-child {
    padding-top: 0;
}

.edu-year {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.5px;
    padding-top: 3px;
    white-space: nowrap;
}

.edu-degree {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.4;
}

.edu-short {
    font-weight: 400;
    color: #888;
    font-size: 14px;
}

.edu-institute {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* ---- Skills & Tags ---- */
.skills-group-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #555;
    margin-bottom: 16px;
}

.skills-tags {}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #ccc;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 9px 20px;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(183, 8, 8, 0.1);
    border-color: rgba(183, 8, 8, 0.3);
    color: #fff;
}

.skill-tag i {
    font-size: 12px;
    color: #b70808;
}

.tool-tag {
    border-radius: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .experience-timeline::before {
        left: 0;
    }

    .exp-item {
        grid-template-columns: 1fr;
        gap: 6px 0;
        padding-left: 20px;
    }

    .exp-date {
        text-align: left;
        align-items: flex-start;
        padding-right: 0;
        padding-top: 0;
    }

    .exp-dot {
        right: auto;
        left: -26px;
        top: 6px;
    }

    .experience-timeline {
        padding-left: 20px;
    }

    .experience-timeline::before {
        left: 0;
    }

    .bg-section-block {
        padding: 32px 24px 36px;
    }
}

@media (max-width: 575px) {
    .edu-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .edu-year {
        color: #b70808;
        font-size: 11px;
    }

    .bg-section-block {
        padding: 24px 20px 28px;
    }

    .bg-block-header h2 {
        font-size: 26px;
    }
}

/* ============================================================
   TOOL ICON COLOURS — appended
   ============================================================ */

/* Figma — official purple gradient via brand color */
.tool-tag.figma-tag i   { color: #a259ff; }
.tool-tag.figma-tag:hover { border-color: rgba(162,89,255,0.4); background: rgba(162,89,255,0.08); }

/* Framer — dark blue */
.tool-tag.framer-tag i  { color: #0055ff; }
.tool-tag.framer-tag:hover { border-color: rgba(0,85,255,0.4); background: rgba(0,85,255,0.08); }

/* Notion — white/light */
.tool-tag.notion-tag i  { color: #e0e0e0; }
.tool-tag.notion-tag:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.08); }

/* AI workflows — green */
.tool-tag.ai-tag i { color: #22c55e; }
.tool-tag.ai-tag:hover { border-color: rgba(34,197,94,0.4); background: rgba(34,197,94,0.08); }

/* Skill tags — no icon, clean look */
.skill-tag:not(.tool-tag) { border-radius: 6px; }

/* SVG inline icon sizing */
.tool-tag svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
