/* ==========================================================
   over-mij-upgrade.css  -  laden NA main.css (alleen op over-mij.html)
   Eigen klassen met prefix "ov-". Dit vervangt het <style>-blok dat
   eerder in over-mij.html stond.
   Effecten: alleen transform/clip-path, geen AOS meer.
   ========================================================== */

:root {
    --vd-brand: #3a3d78;
    --vd-brand-dark: #2b2e5e;
    --vd-ink: #1f2330;
    --vd-soft: #eef0f6;
    --vd-line: #d8dbe8;
    --vd-muted: #5b6176;
}

/* Scherpe koppen: de tekstschaduw uit main.css maakt ze wazig */
h1,
h2,
h3 {
    text-shadow: none !important;
}

/* Logo: de animatie in main.css bleef met 'forwards' vastzitten en blokkeerde hover */
.logo img {
    opacity: 1;
    animation: slideInFromLeft 1.2s ease-out backwards;
    transition: transform 0.3s ease;
}
.logo img:hover {
    transform: scale(1.05);
}

/* Privacylink in de footer was donker op donker en dus onleesbaar */
.footer-bottom a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-bottom a:hover,
.footer-bottom a:focus-visible {
    color: #c5c6d5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Pagina ---------- */
.ov {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 5% 24px;
}
.ov,
.ov *,
.ov *::before,
.ov *::after {
    box-sizing: border-box;
}

/* Sectiekoppen: links met een lijn (zoals op de andere pagina's) */
.ov h2 {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    font-size: 1.6rem;
    margin: 0 0 2rem;
}
.ov h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--vd-line);
}

/* ---------- Hero ---------- */
.ov-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
}
.ov-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.ov-hero h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
    text-align: left;
    margin: 0 0 1.5rem;
    animation: ov-reveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
.ov-intro {
    margin: 0 0 2rem;
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    line-height: 1.7;
    text-align: left;
    color: #2f3447;
    animation: ov-rise 0.6s 0.3s ease-out backwards;
}
.ov-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
    animation: ov-rise 0.6s 0.45s ease-out backwards;
}
.ov-link {
    color: var(--vd-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
}
.ov-link:hover,
.ov-link:focus-visible {
    color: var(--vd-brand-dark);
}

/* Feiten in één oogopslag */
.ov-facts {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--vd-line);
    animation: ov-rise 0.6s 0.6s ease-out backwards;
}
.ov-facts div {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--vd-line);
}
.ov-facts dt {
    color: var(--vd-muted);
}
.ov-facts dd {
    margin: 0;
    font-weight: 600;
    color: var(--vd-ink);
}

/* De foto: onthult zich eenmalig van links naar rechts (clip-path, geen opacity: goed voor LCP) */
.ov-photo {
    margin: 0;
}
.ov-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 515;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 24px 48px -24px rgba(43, 46, 94, 0.5);
    animation: ov-wipe 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

/* ---------- Knoppen ---------- */
.ov-btn {
    display: inline-block;
    text-align: center;
    background: var(--vd-brand);
    color: #fff;
    padding: 14px 24px;
    border: 2px solid var(--vd-brand);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.ov-btn:hover,
.ov-btn:focus-visible {
    background: var(--vd-brand-dark);
    border-color: var(--vd-brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(61, 64, 119, 0.28);
}

/* ---------- Mijn aanpak ---------- */
.ov-section {
    margin-top: 104px;
}
.ov-approach {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}
.ov-diploma {
    margin: 0;
}
.ov-diploma-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.35);
}
.ov-diploma-btn:hover,
.ov-diploma-btn:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px -16px rgba(43, 46, 94, 0.45);
}
.ov-diploma-btn img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}
.ov-diploma figcaption {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
    color: var(--vd-muted);
}
.ov-text p {
    margin: 0 0 1.25rem;
    font-size: 1.05rem;
    line-height: 1.75;
    text-align: left;
    max-width: 68ch;
    color: #2f3447;
}
.ov-text p:last-child {
    margin-bottom: 0;
}

/* Diploma vergroten */
.ov-dialog {
    max-width: min(92vw, 720px);
    max-height: 92vh;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #fff;
    overflow: auto;
}
.ov-dialog::backdrop {
    background: rgba(20, 22, 45, 0.72);
}
.ov-dialog img {
    display: block;
    width: 100%;
    height: auto;
}
.ov-dialog form {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: flex-end;
    height: 0;
}
.ov-dialog-close {
    position: relative;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--vd-brand);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.ov-dialog-close:hover {
    background: var(--vd-brand-dark);
}

/* ---------- Skills ---------- */
.ov-skills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 40px;
}
.ov-skills li {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 16px;
    align-content: start;
    padding: 24px 0 28px;
    border-top: 1px solid var(--vd-line);
}
.ov-skills i {
    grid-row: span 2;
    width: 40px;
    margin-top: 2px;
    font-size: 1.9rem;
    text-align: center;
    color: var(--vd-brand);
}
.skills-section h2{
    margin-top: 10%;
}
.ov-skills h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    text-align: left;
    color: var(--vd-ink);
}
.ov-skills p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
    color: #444a5e;
}

/* ---------- Slotactie ---------- */
.ov-cta {
    max-width: 1100px;
    margin: 96px auto 0;
    padding: 56px 24px;
    text-align: center;
    background: var(--vd-soft);
    border-radius: 16px;
}
.ov-cta h2 {
    display: block;
    text-align: center;
    margin: 0 0 0.75rem;
}
.ov-cta h2::after {
    display: none;
}
.ov-cta p {
    max-width: 52ch;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    text-align: center;
}

/* ---------- Toegankelijkheid ---------- */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--vd-brand);
    outline-offset: 3px;
}

/* ---------- Laadmoment ---------- */
@keyframes ov-reveal {
    from {
        clip-path: inset(0 0 100% 0);
        transform: translateY(24px);
    }
    to {
        clip-path: inset(-10% -5% -10% -5%);
        transform: none;
    }
}
@keyframes ov-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
@keyframes ov-wipe {
    from {
        clip-path: inset(0 100% 0 0 round 16px);
    }
    to {
        clip-path: inset(0 0 0 0 round 16px);
    }
}

/* ---------- Responsief ---------- */
@media (max-width: 900px) {
    .ov-hero {
        display: flex;
        flex-direction: column;
        gap: 24px;
        align-items: stretch;
    }
    /* Op kleine schermen: titel, dan foto, dan de rest */
    .ov-copy {
        display: contents;
    }
    .ov-hero h1 {
        order: 1;
        margin-bottom: 0;
    }
    .ov-photo {
        order: 2;
    }
    .ov-intro {
        order: 3;
        margin-bottom: 0;
    }
    .ov-actions {
        order: 4;
        margin-bottom: 0;
    }
    .ov-facts {
        order: 5;
    }

    .ov-section {
        margin-top: 72px;
    }
    .ov-approach {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .ov-diploma {
        max-width: 280px;
        margin: 0 auto;
    }
    .ov-skills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ov-cta {
        margin-top: 72px;
    }
}
@media (max-width: 600px) {
    .ov {
        padding-top: 40px;
    }
    .ov-skills {
        grid-template-columns: 1fr;
    }
    .ov-facts div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
    .ov-cta {
        margin: 64px 20px 0;
        padding: 40px 20px;
    }
}

/* Respecteer wie animaties liever uit heeft */
@media (prefers-reduced-motion: reduce) {
    .ov-hero h1,
    .ov-intro,
    .ov-actions,
    .ov-facts,
    .ov-photo img,
    .logo img {
        animation: none;
    }
    .ov-btn,
    .ov-diploma-btn,
    .logo img {
        transition: none;
    }
}