/* ==========================================================================
   Components — services, skills, experience, credentials, contact
   ========================================================================== */

/* Services (problem-led framing) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
    box-shadow: var(--shadow);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
}

.service-pain {
    font-size: 1.08rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-pain strong {
    color: var(--accent);
    font-weight: 700;
}

.service-target {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.service-target strong {
    color: var(--text);
    font-weight: 600;
}

.service-stack {
    margin-top: auto;
    font-size: 0.88rem;
    color: var(--text-soft);
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

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

.skill-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-group:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.skill-group-icon {
    font-size: 1.6rem;
    margin-bottom: 0.85rem;
    display: block;
}

.skill-group h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.45rem;
}

.skill-group-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

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

.skill-pill {
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
}

/* Experience timeline */
.experience {
    background: var(--bg-alt);
}

.timeline {
    position: relative;
}

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

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2.5rem;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--accent);
    z-index: 1;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 1rem;
    margin-bottom: 0.6rem;
}

.timeline-date {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.timeline-role {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.timeline-company {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-impact {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.timeline-impact strong {
    color: var(--text);
    font-weight: 600;
}

/* Awards & Certifications */
.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.award-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    position: relative;
    overflow: hidden;
}

.award-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-soft);
    opacity: 0.55;
    pointer-events: none;
}

.award-card>* {
    position: relative;
    z-index: 1;
}

.award-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.award-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.award-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.award-org {
    font-size: 1.02rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.award-context {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.85rem;
    margin-bottom: 1.25rem;
}

.award-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
}

.award-link::after {
    content: '→';
    transition: transform 0.25s ease;
}

.award-link:hover::after {
    transform: translateX(4px);
}

.cert-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.25s ease;
}

.cert-item:hover {
    border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
    transform: translateX(4px);
}

.cert-info {
    min-width: 0;
}

.cert-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.cert-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cert-meta .dot {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.cert-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.cert-link:hover {
    color: var(--accent);
}

.cert-toggle {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.35rem;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cert-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cert-extra {
    display: none;
}

.cert-extra.open {
    display: contents;
}

/* Contact — Large CTA panel */
.contact {
    background: var(--bg-alt);
}

.contact-panel {
    background:
        radial-gradient(ellipse 70% 60% at 30% 20%, rgba(0, 212, 255, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 77, 141, 0.15) 0%, transparent 60%),
        var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 5vw, 4.5rem);
    position: relative;
    overflow: hidden;
}

.contact-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, color-mix(in srgb, var(--accent) 4%, transparent) 100%);
    pointer-events: none;
}

.contact-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-header h2 {
    text-align: justify;
}

.contact-panel h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
}

.contact-reassure {
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1.55;
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    text-align: justify;
}

.contact-wrap p:not(.contact-reassure) {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: justify;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-action {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s ease;
}

.contact-action:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.contact-action.primary {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(0, 212, 255, 0.3);
}

.contact-action.primary:hover {
    box-shadow: 0 18px 40px rgba(0, 212, 255, 0.42);
}

.contact-action-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 12px;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.contact-action.primary .contact-action-icon {
    background: rgba(255, 255, 255, 0.22);
}

.contact-action-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-action-label {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.contact-action.primary .contact-action-label {
    color: rgba(255, 255, 255, 0.9);
}

.contact-action-value {
    font-weight: 700;
    font-size: 1.12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================================
   Packages — Ways I Can Help
   ========================================================================== */

.packages {
    background: var(--bg-alt);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.package-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
    box-shadow: var(--shadow);
}

.package-card.featured {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 50%),
        var(--surface);
}

.package-flag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
}

.package-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.package-for {
    font-size: 0.92rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.package-desc {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.package-estimate {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--text-soft);
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.85rem;
    background: var(--accent-soft);
    border-radius: 8px;
    width: fit-content;
}

.package-deliverables {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.package-deliverables li {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.45;
    padding-left: 1.6rem;
    position: relative;
}

.package-deliverables li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.package-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-strong);
    color: var(--text);
    transition: all 0.25s ease;
    margin-top: auto;
}

.package-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.package-card.featured .package-cta {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 22px rgba(0, 212, 255, 0.25);
}

.package-card.featured .package-cta:hover {
    box-shadow: 0 14px 28px rgba(0, 212, 255, 0.38);
}

/* Retainer — full-width horizontal card */
.package-card.retainer-wide {
    flex-direction: row;
    gap: 2.5rem;
    align-items: center;
}

.package-card.retainer-wide .package-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-card.retainer-wide .package-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    min-width: 200px;
}

/* ==========================================================================
   Package extras — comparison table, problems grid, mini-flow
   ========================================================================== */

/* Mini-flow (reuses svc-flow structure from services-commercial) */
.pkg-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
}

.pkg-flow-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    position: relative;
}

.pkg-flow-num {
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pkg-flow-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.pkg-flow-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Comparison table */
.pkg-comparison {
    margin-bottom: 4rem;
}

.pkg-comparison table {
    width: 100%;
    border-collapse: collapse;
}

.pkg-comparison th,
.pkg-comparison td {
    text-align: left;
    padding: 1.1rem 1.4rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
}

.pkg-comparison th {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--surface);
}

.pkg-comparison td:first-child {
    color: var(--text-muted);
}

.pkg-comparison td:last-child {
    color: var(--text);
    font-weight: 600;
}

.pkg-comparison tr:hover td {
    background: color-mix(in srgb, var(--accent) 4%, transparent);
}

/* Problems grid */
.pkg-problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.pkg-problem-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.2rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.25s ease;
}

.pkg-problem-item:hover {
    border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.pkg-problem-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.pkg-problem-text {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* Retainer label */
.pkg-retainer-label {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.pkg-retainer-label .section-eyebrow {
    margin-bottom: 0.25rem;
}

