/* ============================================================
   SECTIONS.CSS — Minimal SaaS Style for all portfolio sections
   Consistent system: neutral backgrounds, clean cards,
   accent-only highlights. Inspired by Linear / Vercel aesthetics.
   ============================================================ */

/* ─── SHARED CARD BASE ──────────────────────────────────────── */
.saas-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.saas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    border-color: color-mix(in srgb, var(--accent-color) 25%, #e8e8e8);
}

/* ─── ABOUT SECTION ─────────────────────────────────────────── */
.about-wrapper {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    padding: 0;
}

.about-photo-col {
    padding: 40px 32px;
    background: #f7f8fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    border-right: 1px solid #e8e8e8;
}

@media (max-width: 767.98px) {
    .about-photo-col {
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 32px 24px;
    }
}

.about-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid #e8e8e8;
    flex-shrink: 0;
}

/* Info pills stack */
.about-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
}

.about-info-label {
    font-weight: 700;
    color: #374151;
    min-width: 52px;
    flex-shrink: 0;
}

.about-info-value {
    color: #6b7280;
    word-break: break-word;
}

/* About text column */
.about-text-col {
    padding: 40px 40px;
}

@media (max-width: 767.98px) {
    .about-text-col {
        padding: 28px 24px;
    }
}

.about-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color) 10%, white);
    border-radius: 4px;
    padding: 3px 9px;
    margin-bottom: 12px;
}

.about-heading {
    font-size: 1.55rem;
    font-weight: 700;
    color: #0a090f;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.about-body p {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-body p:last-child {
    margin-bottom: 0;
}

/* ─── RESUME SECTION ────────────────────────────────────────── */
.resume-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

@media (max-width: 991.98px) {
    .resume-section-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.resume-column-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resume-column-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

/* Timeline-style resume items */
.resume-timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #e8e8e8;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.resume-entry {
    position: relative;
    padding-bottom: 28px;
}

.resume-entry:last-child {
    padding-bottom: 0;
}

/* Dot on the timeline */
.resume-entry::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--accent-color);
}

.resume-entry-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
}

.resume-entry-date {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color) 10%, white);
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 4px;
}

.resume-entry-sub {
    font-size: 0.83rem;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 6px;
}

.resume-entry-type {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.resume-entry-desc {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 0;
}

.resume-entry ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.resume-entry ul li {
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.65;
    padding-bottom: 4px;
}

/* Resume download CTA */
.resume-download-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e8e8e8;
}

.resume-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 10px;
    border: 1.5px solid var(--accent-color);
    color: var(--accent-color);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    background: transparent;
}

.resume-download-link:hover {
    background: var(--accent-color);
    color: #ffffff;
}

/* ─── SKILLS SECTION ────────────────────────────────────────── */
.skill-card-v2 {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    padding: 28px 24px;
    height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.skill-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: color-mix(in srgb, var(--accent-color) 30%, #e8e8e8);
}

.skill-icon-wrap {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.skill-card-v2 h3 {
    font-size: 0.97rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

/* Unified badge system for skills */
.skill-badge {
    display: inline-block;
    font-size: 0.73rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.01em;
    line-height: 1.5;
}

/* Colour variants — icon wrap backgrounds and badge tints */
.skill-theme-blue   { background: rgba(0, 101, 217, 0.09); color: var(--accent-color); }
.skill-theme-green  { background: rgba(22, 163, 74, 0.09);  color: #166534; }
.skill-theme-teal   { background: rgba(15, 118, 110, 0.09); color: #0f766e; }
.skill-theme-red    { background: rgba(220, 38, 38, 0.09);  color: #b91c1c; }
.skill-theme-amber  { background: rgba(217, 119, 6, 0.09);  color: #92400e; }
.skill-theme-purple { background: rgba(109, 40, 217, 0.09); color: #5b21b6; }
.skill-theme-slate  { background: rgba(71, 85, 105, 0.09);  color: #334155; }
.skill-theme-cyan   { background: rgba(8, 145, 178, 0.09);  color: #0c4a6e; }
.skill-theme-orange { background: rgba(234, 88, 12, 0.09);  color: #9a3412; }

/* ─── CERTIFICATIONS SECTION ────────────────────────────────── */
.cert-card-v2 {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    padding: 28px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cert-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
    border-color: color-mix(in srgb, var(--accent-color) 25%, #e8e8e8);
}

.cert-logo-v2 {
    width: 56px;
    height: 56px;
    object-fit: contain;
    margin-bottom: 14px;
    filter: grayscale(20%);
    transition: filter 0.2s ease;
}

.cert-card-v2:hover .cert-logo-v2 {
    filter: grayscale(0%);
}

.cert-card-v2 h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.35;
}

.cert-issuer {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 8px;
}

.cert-date-badge {
    display: inline-block;
    font-size: 0.69rem;
    font-weight: 600;
    color: var(--accent-color);
    background: color-mix(in srgb, var(--accent-color) 10%, white);
    border-radius: 4px;
    padding: 2px 8px;
    letter-spacing: 0.04em;
    margin-top: auto;
}

/* ─── LANGUAGE SWITCHER ────────────────────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1.5rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

/* In devfolio the header changes to .header-scrolled, so color needs adjusting */
.scrolled .lang-switcher {
    color: #212529;
}

.lang-label {
    opacity: 0.4;
    padding: 4px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.lang-label .flag {
    font-size: 1em;
    line-height: 1;
}

.lang-switcher:has(input:checked) .lang-fr {
    opacity: 1;
    background: var(--accent-color);
    color: #ffffff;
}

.lang-switcher:has(input:not(:checked)) .lang-en {
    opacity: 1;
    background: var(--accent-color);
    color: #ffffff;
}

.lang-switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    margin: 0;
}

.lang-switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.lang-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #f0f3f8;
    transition: .3s;
    border-radius: 34px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.lang-switch-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    background-image: url('https://flagcdn.com/w40/gb.png');
    background-size: cover;
    background-position: center;
}

input:checked + .lang-switch-slider {
    background-color: #f0f3f8;
}

input:focus-visible + .lang-switch-slider {
    outline: 2px solid var(--accent-color);
}

input:checked + .lang-switch-slider:before {
    transform: translateX(24px);
    background-image: url('https://flagcdn.com/w40/fr.png');
}

/* ─── CUSTOM TOAST NOTIFICATION ───────────────────────────────── */
#custom-toast {
    visibility: hidden;
    min-width: 280px;
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    padding: 16px 24px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s ease, bottom 0.3s ease, visibility 0.3s ease;
}

#custom-toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}

#custom-toast.success {
    background-color: #2eb183;
}

#custom-toast.error {
    background-color: #dc3545;
}

#custom-toast.warning {
    background-color: #ffc107;
    color: #212529;
}
